/* Amigo Musical — Farfetch-inspired layout */

:root {
  --bg: #fff;
  --text: #000;
  --muted: #666;
  --border: #e5e5e5;
  --sale: #c00;
  --surface: #f5f5f5;
  --cookie: #222;
  --max: 1440px;
  --header-h: auto;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Announcement */
.announcement {
  background: #eee;
  text-align: center;
  font-size: 12px;
  padding: 10px 16px;
}

.announcement a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px 12px;
  gap: 16px;
}

.dept-nav {
  display: flex;
  gap: 20px;
}

.dept-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.dept-link.is-active {
  color: var(--text);
  font-weight: 600;
}

.dept-link:hover {
  color: var(--text);
}

.logo {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
}

.header-utils {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}

.icon-btn:hover {
  background: var(--surface);
}

.flag {
  font-size: 16px;
  line-height: 1;
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 32px 16px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.nav-link {
  font-size: 13px;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
}

.nav-link.sale {
  color: var(--sale);
  font-weight: 500;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  flex-shrink: 0;
}

.search button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
}

.search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  min-width: 160px;
  padding: 4px 0;
}

.search input::placeholder {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid var(--text);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--text);
  color: #fff;
}

.btn-solid {
  background: #fff;
  color: var(--text);
  border: 1px solid transparent;
}

.btn-solid:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-text {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px 12px;
  font-size: 13px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(72vh, 640px);
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 48px;
  gap: 20px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 14ch;
}

.hero-copy p {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.hero-media {
  overflow: hidden;
  background: #111;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  transition: transform 0.6s ease;
}

.hero-media:hover img {
  transform: scale(1.03);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 32px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head h2,
.section-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 48ch;
  line-height: 1.3;
}

.section-title {
  margin-bottom: 28px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card a.product-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.wishlist-btn:hover,
.wishlist-btn.is-active {
  color: var(--sale);
}

.wishlist-btn.is-active svg {
  fill: currentColor;
}

.product-brand {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.product-name {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.product-price {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
}

.price-sale {
  color: var(--sale);
}

.discount-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--sale);
}

.special-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
}

/* Editorial */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.editorial-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
  color: #fff;
}

.editorial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s ease, opacity 0.3s;
}

.editorial-card:hover img {
  transform: scale(1.04);
  opacity: 0.7;
}

.editorial-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
  pointer-events: none;
}

.editorial-label strong {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.editorial-label em {
  font-style: normal;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Brands */
.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
}

.brand-list a {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Help */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.help-card {
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: background 0.15s;
}

.help-card:hover {
  background: var(--surface);
}

.help-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

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

/* Newsletter */
.newsletter {
  background: var(--surface);
  padding: 64px 32px;
}

.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
}

.newsletter > .newsletter-inner > p,
.newsletter-legal {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin: 24px 0 16px;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  padding: 12px 14px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--text);
}

.newsletter-legal a {
  text-decoration: underline;
}

.newsletter-form .btn-solid {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.newsletter-form .btn-solid:hover {
  background: #333;
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-payments {
  margin-bottom: 40px;
}

.footer-payments h3,
.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.footer-payments ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-grid a {
  font-size: 13px;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.legal-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 200;
  width: min(360px, calc(100vw - 48px));
  background: var(--cookie);
  color: #fff;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.cookie-banner p {
  margin: 0 0 20px;
  font-size: 13px;
  color: #ccc;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-banner .btn-solid {
  background: #fff;
  color: var(--text);
}

/* Empty search */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-top {
    padding: 14px 20px 10px;
  }

  .header-nav {
    padding: 8px 20px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .section {
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
    padding: 40px 24px;
  }

  .hero-media {
    order: 1;
    min-height: 280px;
  }

  .hero-media img {
    min-height: 280px;
  }

  .header-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .dept-nav,
  .header-utils {
    width: 100%;
    justify-content: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .editorial-grid,
  .help-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .main-nav {
    gap: 4px 14px;
  }

  .logo {
    letter-spacing: 0.08em;
  }
}
