*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000;
  --white: #fff;
  --light-gray: #f5f5f5;
  --mid-gray: #e0e0e0;
  --text-gray: #555;
  --accent: #9b5de5;
  --frasers-purple: #6b21a8;
  --frasers-pink: #ec4899;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  line-height: 1.4;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ─── PROMO BAR ─── */
.promo-bar {
  background: #c8f000;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000;
}
.promo-bar a { text-decoration: underline; }

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  max-width: 1440px;
  margin: 0 auto;
}

.header-logo { flex-shrink: 0; }

.header-search {
  flex: 1;
  max-width: 480px;
  margin: 0 32px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: #1a1a1a;
  border: none;
  border-radius: 4px;
  padding: 9px 16px 9px 38px;
  color: #aaa;
  font-size: 13px;
  outline: none;
}

.header-search input::placeholder { color: #888; }

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icons svg { cursor: pointer; }
.header-icons .relaunch-btn {
  background: white;
  color: black;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

/* ─── NAV ─── */
nav {
  background: var(--black);
  border-top: 1px solid #222;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-inner a {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 16px;
  display: block;
  transition: opacity 0.15s;
}

.nav-inner a:hover { opacity: 0.7; }

/* ─── HERO BANNER ─── */
.hero {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 33.33%; /* 3:1 */
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.hero-content h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hero-btns a {
  background: white;
  color: black;
  padding: 11px 26px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.hero-btns a:hover { background: #eee; }

/* ─── SECTION TITLES ─── */
.section-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.section-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ─── TRENDING NOW GRID ─── */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trending-card {
  cursor: pointer;
}

.trending-card .img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 10px;
}

.trending-card .img-wrap img {
  transition: transform 0.4s ease;
}

.trending-card:hover .img-wrap img { transform: scale(1.04); }

.trending-card h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.trending-card .shop-now {
  font-size: 12px;
  text-decoration: underline;
  color: var(--text-gray);
}

/* ─── FRASERS PLUS BANNER ─── */
.frasers-plus {
  background: #1a0533;
  background-image: url('https://www.flannels.com/_next/static/media/frasers-plus-bg-pattern.41b353b5.png');
  background-size: cover;
  padding: 0px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto 0;
  border-radius: 4px;
  gap: 24px;
}

.frasers-plus-text {
  color: white;
}

.frasers-plus-text p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.frasers-plus-text small {
  font-size: 12px;
  color: #ccc;
  display: block;
  margin-bottom: 3px;
}

.frasers-plus-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.frasers-plus-logo span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
}

.plus-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #9b59b6, #e91e8c, #3b82f6, #22c55e);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 300;
  color: white;
}

.frasers-btns {
  display: flex;
  gap: 10px;
}

.frasers-btns a {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
}

.btn-purple { background: #9b5de5; color: white; }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid white; }

/* ─── EXCLUSIVE PICKS ─── */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pick-card {
  cursor: pointer;
}

.pick-card .img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--light-gray);
  position: relative;
}

.pick-card .img-wrap img { transition: transform 0.4s; }
.pick-card:hover .img-wrap img { transform: scale(1.04); }

.pick-card .brand {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pick-card .product-name {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.pick-card .price {
  font-size: 13px;
  font-weight: 500;
}

.pick-card .price .old {
  text-decoration: line-through;
  color: #999;
  margin-left: 6px;
  font-weight: 400;
}

.pick-card .price .sale { color: #c0392b; }

/* ─── THREE CARDS ─── */
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.promo-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
}

.promo-card img { transition: transform 0.4s; }
.promo-card:hover img { transform: scale(1.04); }

.promo-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  color: white;
  text-align: center;
}

.promo-card-content h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.promo-card-content .shop-btn {
  display: inline-block;
  background: white;
  color: black;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
}

/* ─── SHOP NEW SEASON ─── */
.new-season-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.season-card {
  cursor: pointer;
}

.season-card .img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--light-gray);
}

.season-card .img-wrap img { transition: transform 0.4s; }
.season-card:hover .img-wrap img { transform: scale(1.04); }

.season-card .brand { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.season-card .product-name { font-size: 12px; color: var(--text-gray); margin-bottom: 4px; }
.season-card .price { font-size: 13px; font-weight: 500; }
.season-card .price .old { text-decoration: line-through; color: #999; margin-left: 5px; }
.season-card .price .sale { color: #c0392b; }

/* ─── DESIGNERS ─── */
.designers-wrap { background: #fafafa; }

.designers-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.designers-list::-webkit-scrollbar { height: 3px; }
.designers-list::-webkit-scrollbar-thumb { background: #ccc; }

.designer-tag {
  flex-shrink: 0;
  border: 1.5px solid #ccc;
  padding: 8px 18px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.designer-tag:hover { border-color: #000; background: #f0f0f0; }

/* ─── NEWSLETTER ─── */
.newsletter {
  text-align: center;
  padding: 48px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h3 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 12px;
}

.newsletter-form input {
  flex: 1;
  border: 1.5px solid #ccc;
  border-right: none;
  padding: 11px 16px;
  font-size: 13px;
  outline: none;
}

.newsletter-form button {
  background: #000;
  color: #fff;
  border: none;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: #333; }

.newsletter small { font-size: 11px; color: #888; }
.newsletter small a { text-decoration: underline; }

/* ─── FOOTER ─── */
footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto auto;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.footer-col a:hover { color: #000; }

.footer-col.apps { grid-column: 5; }
.footer-col.payment { grid-column: 7; }

.app-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.app-btn img-placeholder {
  width: 20px;
  height: 20px;
  background: #ddd;
  border-radius: 3px;
}

.app-btn span { font-size: 11px; font-weight: 600; }

.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.payment-row svg { display: block; }

/* app store badges */
.app-badge {
  display: inline-block;
  margin-bottom: 8px;
  cursor: pointer;
}

.app-badge img {
  height: 36px;
  width: auto;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ─── FOOTER BOTTOM ─── */
.footer-bottom {
  border-top: 1px solid #e0e0e0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.lang-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}

.lang-flag img { width: 100%; height: 100%; }

.footer-bottom-center {
  font-size: 12px;
  color: #555;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-center a { font-size: 12px; color: #555; }
.footer-bottom-center a:hover { color: #000; }

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.social-circle:hover { background: #444; }

.footer-legal {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 24px;
  font-size: 11px;
  color: #888;
  text-align: center;
  line-height: 1.6;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.footer-legal a { text-decoration: underline; color: #888; }

/* ─── HEART / BAG icons ─── */
.heart-overlay, .bag-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  cursor: pointer;
}

.bag-overlay { top: 44px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .trending-grid, .picks-grid { grid-template-columns: repeat(2, 1fr); }
  .three-grid { grid-template-columns: repeat(2, 1fr); }
  .new-season-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-col.apps, .footer-col.payment { grid-column: auto; }
  .hero { padding-bottom: 50%; }
}

@media (max-width: 600px) {
  .trending-grid, .picks-grid, .new-season-grid { grid-template-columns: repeat(2, 1fr); }
  .three-grid { grid-template-columns: 1fr; }
  .nav-inner { overflow-x: auto; justify-content: flex-start; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .hero { padding-bottom: 66%; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}