:root {
  --page: #fafafa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --blue: #1e4ed8;
  --blue-hover: #1d4ed8;
  --shadow: 0 2px 9px rgba(15, 23, 42, 0.035);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 16, 31, 0.97);
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.14);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 48px, 1440px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 44px;
}

.site-logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.site-logo img {
  display: block;
  width: auto;
  height: 50px;
  max-width: 220px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
  color: #dbe3f0;
}

.main-nav a {
  padding: 26px 0;
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.header-search {
  width: 210px;
  height: 39px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.header-search:focus-within {
  border-color: rgba(147, 197, 253, 0.8);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.header-search svg,
.deal-search svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #9ca3af;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.header-search svg {
  stroke: #aebbd0;
}

.header-search input,
.deal-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  color: #ffffff;
}

.header-search input::placeholder,
.deal-search input::placeholder {
  color: #9ca3af;
}

.menu-toggle {
  display: none;
}

.page-shell {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 26px 0 22px;
  font-size: 12px;
  color: #9ca3af;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 3px 0 36px;
}

.brand-logo {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-logo img {
  width: 63px;
}

.brand-section h1 {
  margin: 0 0 8px;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.brand-section p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.brand-section p strong {
  color: #4b5563;
  font-weight: 600;
}

.deals-section {
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.55px;
}

.deal-search {
  width: 320px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.deal-search:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.deal-search input {
  font-size: 13px;
}

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}

.coupon-card {
  min-height: 302px;
  display: flex;
  flex-direction: column;
  padding: 21px 18px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.coupon-card:hover {
  transform: translateY(-3px);
  border-color: #dbe0e8;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.card-logo {
  height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.card-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.card-copy {
  flex: 1;
}

.card-copy h3 {
  min-height: 44px;
  margin: 0 0 11px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.deal-button {
  width: 100%;
  height: 42px;
  margin-top: 20px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  transition: background 0.18s ease, transform 0.12s ease;
}

.deal-button:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.deal-button:active {
  transform: translateY(0);
}

.empty-state {
  padding: 44px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.description-section {
  margin: 42px 0 70px;
  padding: 25px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.description-section h2 {
  margin: 0 0 11px;
  font-size: 15px;
}

.description-section p {
  max-width: 1110px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  padding: 13px 18px;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .coupon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-nav {
    gap: 20px;
  }

  .header-inner {
    gap: 28px;
  }
}

@media (max-width: 899px) {
  .coupon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: #09101f;
    box-shadow: 0 12px 20px rgba(2, 6, 23, 0.2);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    margin-left: auto;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #e5e7eb;
  }

  .header-search {
    margin-left: 0;
  }
}

@media (max-width: 599px) {
  .header-inner,
  .page-shell {
    width: min(100% - 30px, 1440px);
  }

  .site-logo {
    max-width: 180px;
  }

  .site-logo img {
    height: 41px;
    max-width: 180px;
  }

  .header-search {
    display: none;
  }

  .brand-logo {
    width: 68px;
    height: 68px;
  }

  .brand-section h1 {
    font-size: 25px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .deal-search {
    width: 100%;
  }

  .coupon-grid {
    grid-template-columns: 1fr;
  }

  .coupon-card {
    min-height: 280px;
  }

  .description-section {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
