/* Trending Offer Hub - main stylesheet
   Colors and fonts are set here; change them in one place. */
:root {
  --pink: #EE4D8B;
  --pink-dark: #C2306A;
  --teal: #12928C;
  --teal-dark: #0B6662;
  --ink: #1A1D2E;
  --ink-2: #262A40;
  --sun: #FFD15C;
  --blush: #FFF0F5;
  --cream: #FFFAF6;
  --line: #EBE3E6;
  --muted: #5F6275;
  --white: #fff;
  --radius: 18px;
  --head: "Kanit", sans-serif;
  --body: "Hanken Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border: 0; border-radius: 999px; background: var(--pink); color: var(--white); font: 600 15px var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(238, 77, 139, .3); transition: background .2s, transform .2s; }
.btn:hover { background: var(--pink-dark); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.sun { background: var(--sun); color: var(--ink); box-shadow: none; }
.btn.sun:hover { background: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--pink-dark); }
.text-link.light { color: var(--sun); }

/* Top bar and header */
.topbar { background: var(--ink); color: #E9E9F2; font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 20px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar .ic { color: var(--sun); }
.topbar-right { display: flex; gap: 20px; }
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { width: 178px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.main-nav a:hover { background: var(--blush); }
.main-nav a.on { background: var(--ink); color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--teal); color: var(--white); font-weight: 600; text-decoration: none; }
.cart-btn:hover { background: var(--teal-dark); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }
.menu-btn { display: none; padding: 8px; border: 2px solid var(--ink); border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }

/* Hero with a rising "trend line" in the background */
.hero { background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'%3E%3Cpath d='M0 360 L180 300 L320 330 L480 220 L620 260 L780 140 L920 180 L1200 40' fill='none' stroke='%23F7B9D1' stroke-width='6'/%3E%3C/svg%3E") center / 100% 100% no-repeat; padding: 64px 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; margin-bottom: 28px; }
.hero h1 span { color: var(--pink); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags a { padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--teal-dark); font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid #F4CFDD; }
.tags a:hover { background: var(--teal); color: var(--white); }
.hero-photo { position: relative; justify-self: center; max-width: 420px; }
.hero-photo img { border-radius: 200px 200px var(--radius) var(--radius); border: 8px solid var(--white); box-shadow: 18px 18px 0 var(--teal); }
.float-card { position: absolute; left: -36px; bottom: 40px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--white); box-shadow: 0 14px 30px rgba(26, 29, 46, .16); }
.float-card strong { display: block; font-family: var(--head); font-size: 20px; }
.float-card small { color: var(--muted); }
.fc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--pink); color: var(--white); display: grid; place-items: center; }

/* Perks band */
.perks-band { background: var(--teal); color: var(--white); padding: 28px 0; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk .ic { width: 30px; height: 30px; color: var(--sun); }
.perk h3 { font-size: 17px; margin-bottom: 2px; }
.perk p { margin: 0; font-size: 14px; opacity: .9; }

/* Sections */
.section { padding: 72px 0; }
.section.tint { background: var(--blush); }
.section.pink { background: linear-gradient(135deg, #FFE1EC, #FFF0F5); }
.section.dark { background: var(--ink); color: var(--white); }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { margin: 0; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.row-head .sec-head { margin: 0; }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dept { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.dept:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(26, 29, 46, .1); }
.dept-num { position: absolute; top: 16px; right: 20px; font-family: var(--head); font-size: 30px; font-weight: 700; color: #F7CADB; }
.dept-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--blush); color: var(--pink); display: grid; place-items: center; margin-bottom: 12px; }
.dept strong { font-family: var(--head); font-size: 19px; font-weight: 600; }
.dept small { color: var(--muted); }
.dept em { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 700; color: var(--teal-dark); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.three { grid-template-columns: repeat(3, 1fr); }
.product { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; color: var(--ink); }
.product-img { position: relative; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.rank { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 11px; border-radius: 999px; background: var(--pink); color: var(--white); font-family: var(--head); font-weight: 600; font-size: 14px; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.p-dept { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 6px; }
.product h3 { font-size: 17px; margin-bottom: 8px; }
.product p { font-size: 14px; color: var(--muted); flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-family: var(--head); font-size: 21px; font-weight: 600; }
.add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: 600 14px var(--body); cursor: pointer; }
.add-btn:hover { background: var(--pink); }
.add-btn.added { background: var(--teal); }
.dark .product { border-color: var(--ink-2); }
.group { margin-bottom: 56px; }
.group:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chips a { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 14px; text-decoration: none; }
.chips a:hover { border-color: var(--pink); color: var(--pink-dark); }
.chips a.on { background: var(--pink); border-color: var(--pink); color: var(--white); }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-photo { position: relative; max-width: 440px; margin-left: 18px; }
.split-photo img { border-radius: var(--radius); box-shadow: -18px 18px 0 var(--pink); }
.split-photo.wide { max-width: none; }
.chart-tag { position: absolute; right: -20px; top: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--sun); font-weight: 700; }
.reasons { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.reasons li { display: flex; gap: 14px; }
.reasons .ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--teal); color: var(--white); }
.reasons strong { display: block; font-family: var(--head); font-weight: 600; font-size: 18px; }
.reasons span { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: var(--sun); font-family: var(--head); font-size: 20px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { margin: 0; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 26px rgba(194, 48, 106, .08); }
.stars { display: flex; gap: 3px; color: #F5A524; margin-bottom: 14px; }
.stars .ic { fill: currentColor; }
.quote blockquote { margin: 0 0 22px; flex: 1; font-size: 17px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption strong { display: block; }
.quote figcaption small { color: var(--muted); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-family: var(--head); font-weight: 600; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.post-img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .3s; }
.post-img { overflow: hidden; }
.post:hover .post-img img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.post-body h3 a { text-decoration: none; }
.post-body p { color: var(--muted); flex: 1; }
.article { max-width: 800px; }
.article-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; }
.article h2 { font-size: 24px; margin-top: 30px; }
.article ul { padding-left: 20px; margin: 0 0 16px; }
.article li { margin-bottom: 6px; }

/* Newsletter */
.news { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-radius: 26px; background: var(--teal); color: var(--white); overflow: hidden; padding: 0; }
.news-text { padding: 48px; align-self: center; }
.news-photo img { width: 100%; height: 100%; object-fit: cover; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input { flex: 1; min-width: 200px; border: 0; }

/* Banner for inner pages */
.banner { background: var(--blush); padding: 52px 0; border-bottom: 4px solid var(--pink); }
.banner h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0; }

/* About */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px; border-radius: var(--radius); background: var(--white); }
.stat b { display: block; font-family: var(--head); font-size: 40px; color: var(--pink); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.value .ic { width: 40px; height: 40px; color: var(--teal); margin-bottom: 12px; }
.value p { margin: 0; color: var(--muted); }

/* Forms, cards, cart */
.card { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.card.empty { text-align: center; max-width: 560px; margin: 0 auto; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid #D9D0D4; border-radius: 12px; font: inherit; background: var(--white); color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--pink); border-color: transparent; }
.card form input { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.form-grid input, .form-grid textarea { margin-bottom: 8px; }
.form-grid .full { grid-column: 1 / -1; }
.form-msg { margin: 12px 0 0; font-weight: 700; color: var(--teal-dark); }
.news .form-msg { color: var(--sun); }
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.contact-side img { border-radius: var(--radius); margin-bottom: 20px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .ic { color: var(--pink); }
.contact-list strong { display: block; }
.contact-list a { text-decoration: none; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table th { font-size: 13px; text-transform: uppercase; color: var(--muted); }
.cart-table img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.cart-table input { width: 72px; }
.remove-btn { border: 0; background: none; color: var(--pink-dark); font-weight: 700; cursor: pointer; }
.summary h3 { font-size: 22px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.summary-line.total { font-weight: 700; font-size: 18px; border-bottom: 0; }
.summary .btn { width: 100%; justify-content: center; }
.note { font-size: 14px; color: var(--muted); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-radius: 14px; background: var(--ink); color: var(--white); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); transform: translate(-50%, 140%); opacity: 0; transition: .3s; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: var(--sun); font-weight: 700; white-space: nowrap; }

/* Footer */
.footer { background: var(--ink); color: #D7D8E4; padding-top: 52px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid #34384F; }
.footer-top img { width: 178px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer-contact span, .footer-contact a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-contact .ic { color: var(--pink); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 20px; }
.footer h4 { color: var(--white); font-size: 18px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; border-top: 1px solid #34384F; font-size: 14px; }
.footer-bottom nav { display: flex; gap: 20px; }

/* Tablet */
@media (max-width: 1000px) {
  .product-grid, .dept-grid, .perks, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .product-grid.three, .post-grid, .quotes, .values { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .split, .contact, .cart-layout, .news { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; }
  .split-photo { justify-self: center; }
  .news-photo { max-height: 280px; overflow: hidden; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 760px) {
  .topbar-right a:last-child { display: none; }
  .menu-btn { display: inline-flex; }
  .cart-btn .label { display: none; }
  .header-actions { margin-left: auto; }
  .logo img { width: 146px; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 20px; }
  .section { padding: 52px 0; }
  .product-grid, .product-grid.three, .post-grid, .quotes, .values, .perks, .steps { grid-template-columns: 1fr; }
  .dept-grid { gap: 12px; }
  .dept { padding: 18px 16px; }
  .dept-num { font-size: 22px; top: 12px; right: 14px; }
  .dept strong { font-size: 16px; }
  .float-card { left: 0; }
  .chart-tag { right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .news-text { padding: 32px 24px; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .topbar-in { justify-content: center; }
  .topbar .topbar-right { display: none; }
}
