/*
  Private parody site. Not affiliated with Inter IKEA Systems B.V.
  Static IKEA-style product information page.
*/

:root {
  --ikea-blue: #0058a3;
  --ikea-yellow: #ffdb00;
  --ikea-black: #111;
  --ikea-text: #333;
  --ikea-muted: #484848;
  --ikea-soft: #f5f5f5;
  --ikea-border: #dfdfdf;
  --ikea-white: #fff;
  --ikea-green: #0a8a00;
  --skapa-red: #e00751;
  --max-width: 1168px;
  --side-width: 432px;
  --gutter: 64px;
  --font-primary: "Noto IKEA", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--ikea-black);
  background: var(--ikea-white);
  font-size: 14px;
  line-height: 1.571;
  overflow-x: hidden;
}

body.drawer-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
ul, ol { margin: 0; padding: 0; }

.service-bar {
  background: var(--ikea-black);
  color: var(--ikea-white);
  font-size: 14px;
  font-weight: 700;
}

.service-bar__inner {
  max-width: var(--max-width);
  height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0;
}

.service-bar__locale { margin-right: auto; }

.nav-bar {
  background: var(--ikea-white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
}

.nav-bar__inner {
  max-width: var(--max-width);
  height: 80px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  column-gap: 30px;
}

.nav-bar__left { display: contents; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo svg { width: 98px; height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav-links a { padding: 28px 0; }
.nav-links a:hover { text-decoration: underline; }

.nav-bar__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 354px;
  height: 48px;
  padding: 0 18px;
  background: var(--ikea-soft);
  border-radius: 999px;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  font-weight: 700;
}

.nav-action span { display: none; }

.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 0 46px;
  color: var(--ikea-text);
  font-size: 12px;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--ikea-muted);
}

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

.main-content { max-width: none; }

.product-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-width);
  gap: var(--gutter);
  align-items: start;
}

.product-main-column { min-width: 0; }

.product-media-layout {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.product-hero__thumbnails {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thumbnail {
  position: relative;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 1px solid var(--ikea-border);
  background: var(--ikea-white);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.thumbnail.active { border-color: var(--ikea-black); }
.thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero__main-image {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.hero-img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center top;
}

.hero-overlay-buttons {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.btn-pill {
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #4a4a4a;
  color: var(--ikea-white);
  font-weight: 700;
  font-size: 12px;
}

.product-hero__info {
  position: sticky;
  top: 150px;
  min-height: 420px;
  padding-top: 2px;
}

.buy-box__title-row {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 20px;
  align-items: start;
}

.product-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.text-link {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: underline;
}

.info-favourite {
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  height: 44px;
}

.product-rating {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars { font-size: 15px; letter-spacing: 1px; }
.rating-count { text-decoration: none; }
.rating-count:hover { text-decoration: underline; }

.product-price { margin-top: 16px; }

.price {
  display: inline-flex;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-cents {
  align-self: flex-start;
  font-size: 18px;
  line-height: 1.2;
  margin-left: 1px;
  letter-spacing: 0;
}

.price-vat {
  display: block;
  margin-top: 6px;
  color: var(--ikea-muted);
  font-size: 12px;
}

.availability { margin-top: 92px; }

.availability__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.availability__title { font-size: 16px; font-weight: 800; }
.availability__change { font-size: 12px; text-decoration: underline; }

.availability-card {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr 24px;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 16px;
  border: 1px solid var(--ikea-border);
  border-bottom-width: 0;
  background: var(--ikea-white);
  text-align: left;
}

.availability-card:first-of-type { border-radius: 8px 8px 0 0; }
.availability-card:last-of-type { border-bottom-width: 1px; border-radius: 0 0 8px 8px; }
.availability-card:hover { border-color: #929292; }

.availability-card__icon { display: flex; }
.availability-card__text { display: flex; flex-direction: column; gap: 2px; }
.availability-card__location { font-size: 14px; font-weight: 800; }
.availability-card__status { color: var(--ikea-muted); }
.status-dot { display: none; }
.chevron { justify-self: end; font-size: 34px; line-height: 1; }

.quantity-selector {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  width: 124px;
  height: 56px;
  border: 1px solid #929292;
  border-radius: 999px;
  overflow: hidden;
}

.qty-btn {
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 26px;
}

.qty-value {
  width: 100%;
  border: 0;
  text-align: center;
  font-weight: 800;
  outline: 0;
}

.btn-add-to-bag {
  float: right;
  width: calc(100% - 140px);
  height: 56px;
  margin-top: -56px;
  border: 0;
  border-radius: 999px;
  background: var(--ikea-blue);
  color: var(--ikea-white);
  font-size: 16px;
  font-weight: 800;
}

.btn-add-to-bag:hover { background: #004f93; }

.bag-alert {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 1100;
  width: min(420px, calc(100vw - 32px));
  color: var(--ikea-white);
}

.bag-alert__content {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 14px 20px;
  border-radius: 4px;
  background: var(--skapa-red);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}

.bag-alert__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ikea-white);
  font-size: 28px;
  line-height: 1;
}

.bag-alert__close:hover,
.bag-alert__close:focus-visible {
  outline: 2px solid var(--ikea-white);
  outline-offset: 2px;
}

.ikea-family-row {
  clear: both;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  margin-top: 28px;
  font-size: 14px;
}

.ikea-family-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ikea-yellow);
  display: grid;
  place-items: center;
}

.ikea-family-text { display: flex; flex-direction: column; }
.ikea-family-text span:first-child { font-weight: 800; }
.ikea-family-text a { text-decoration: underline; }

.product-intro {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 32px;
  align-items: start;
  max-width: 672px;
}

.product-intro p {
  margin: 0;
  color: var(--ikea-muted);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
}

.designer-row {
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  text-align: left;
}

.designer-photo { width: 48px; height: 64px; object-fit: cover; }
.designer-info { display: flex; flex-direction: column; }
.designer-label { color: var(--ikea-muted); font-size: 12px; }
.designer-name { font-size: 16px; line-height: 1.35; font-weight: 800; }

.article-number-row {
  grid-column: 1 / -1;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-label { color: var(--ikea-muted); font-size: 12px; }
.article-number {
  display: inline-block;
  width: fit-content;
  padding: 2px 10px 3px;
  background: var(--ikea-black);
  color: var(--ikea-white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.product-section-list {
  max-width: 672px;
  margin-top: 46px;
  border-top: 1px solid var(--ikea-border);
}

.product-section-row {
  width: 100%;
  min-height: 116px;
  border: 0;
  border-bottom: 1px solid var(--ikea-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  text-align: left;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
}

.row-arrow { font-size: 44px; font-weight: 300; }

.reviews,
.related-products,
.get-the-look {
  max-width: var(--max-width);
  margin: 64px auto 0;
  padding: 0;
}

.reviews { padding-top: 26px; border-top: 1px solid var(--ikea-border); background: transparent; border-radius: 0; }
.reviews__heading, .related-products__heading, .get-the-look__heading { font-size: 25px; line-height: 1.2; margin: 0 0 24px; }

.reviews__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
}

.reviews__summary { order: -1; text-align: left; }
.reviews__average { margin: 0; font-size: 80px; line-height: .9; font-weight: 800; }
.reviews__stars { margin: 12px 0; letter-spacing: 2px; }
.reviews__count { margin: 24px 0 0; font-weight: 800; }
.reviews__average-label, .reviews__count-label { margin: 0; color: var(--ikea-muted); }

.btn-show-reviews {
  margin-top: 24px;
  height: 40px;
  border: 1px solid var(--ikea-black);
  border-radius: 999px;
  padding: 0 22px;
  background: transparent;
  font-weight: 800;
}

.reviews__cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 33%);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.review-card { background: var(--ikea-soft); padding: 24px; min-height: 220px; scroll-snap-align: start; }
.review-card__title { margin: 0 0 10px; font-weight: 800; }
.review-card__rating { margin-bottom: 14px; }
.review-card__text { margin: 0 0 18px; color: var(--ikea-muted); }
.review-card__author { margin: 0; color: var(--ikea-muted); font-size: 12px; }

.related-products__grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 20px; }
.related-card img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--ikea-soft); }

.get-the-look { margin-bottom: 72px; }
.get-the-look__subtitle { margin: -16px 0 18px; color: var(--ikea-muted); }
.get-the-look__gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  grid-template-columns: minmax(440px, 2fr);
  gap: 12px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.look-item { position: relative; min-height: 230px; scroll-snap-align: start; }
.look-item img { width: 100%; height: 100%; object-fit: cover; }
.look-overlay-card { position: absolute; left: 16px; bottom: 16px; background: var(--ikea-white); padding: 12px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.look-overlay-card p { margin: 0; }
.look-overlay-card__name { font-weight: 800; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.38);
}

.product-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: min(480px, 100vw);
  height: 100vh;
  padding: 76px 40px 40px;
  background: var(--ikea-white);
  transform: translateX(100%);
  transition: transform .22s ease;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,.12);
}

.product-drawer.is-open { transform: translateX(0); }
.drawer-close { position: absolute; top: 24px; right: 28px; border: 0; background: transparent; font-size: 32px; line-height: 1; }
.drawer-panel h2 { margin: 0 0 18px; font-size: 25px; line-height: 1.2; }
.drawer-panel h3 { margin: 20px 0 2px; font-size: 16px; }
.drawer-panel p { margin: 0 0 16px; color: var(--ikea-text); font-size: 14px; }
.drawer-article { margin: 24px 0 40px; display: flex; flex-direction: column; gap: 6px; }

.drawer-accordion {
  border-top: 1px solid var(--ikea-border);
}
.drawer-accordion:last-child { border-bottom: 1px solid var(--ikea-border); }
.drawer-accordion summary {
  list-style: none;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}
.drawer-accordion summary::-webkit-details-marker { display: none; }
.drawer-accordion summary::after { content: "⌄"; font-size: 24px; }
.drawer-accordion[open] summary::after { transform: rotate(180deg); }
.drawer-accordion ul { padding-left: 20px; margin-bottom: 22px; }
.drawer-accordion li { margin-bottom: 8px; }

.measurement-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ikea-border); padding: 18px 0; }
.drawer-designer { display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: start; }
.drawer-designer img { width: 80px; height: 104px; object-fit: cover; }

.site-footer {
  margin-top: 72px;
  background: var(--ikea-black);
  color: var(--ikea-white);
  padding: 28px;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 1240px) {
  :root { --max-width: calc(100vw - 96px); --gutter: 48px; --side-width: 432px; }
  .service-bar__inner, .nav-bar__inner, .breadcrumb, .product-hero, .reviews, .related-products, .get-the-look { max-width: var(--max-width); }
}

@media (max-width: 1024px) {
  :root { --max-width: calc(100vw - 48px); --side-width: 360px; --gutter: 32px; }
  .service-bar { display: none; }
  .nav-bar__inner { grid-template-columns: 100px 1fr auto; height: 72px; }
  .nav-links { display: none; }
  .nav-search { width: min(360px, 38vw); }
  .product-media-layout { grid-template-columns: 1fr; }
  .product-hero__thumbnails { display: none; }
  .product-intro { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --max-width: calc(100vw - 32px); }
  .nav-bar { position: static; }
  .nav-bar__inner { display: flex; flex-wrap: wrap; height: auto; padding: 16px 0; gap: 14px; }
  .nav-search { order: 3; width: 100%; }
  .breadcrumb { display: none; }
  .product-hero { display: block; padding-top: 10px; }
  .product-hero__info { position: static; margin-top: 28px; }
  .availability { margin-top: 38px; }
  .btn-add-to-bag { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; width: auto; float: none; margin: 0; }
  .bag-alert { left: 16px; right: 16px; top: auto; bottom: 88px; width: auto; }
  .quantity-selector { margin-bottom: 88px; }
  .product-intro p { font-size: 19px; }
  .product-section-row { min-height: 92px; font-size: 22px; }
  .reviews__layout, .reviews__cards { display: block; }
  .review-card { margin-bottom: 16px; }
  .related-products__grid { grid-template-columns: repeat(2, 1fr); }
  .get-the-look__gallery { display: flex; overflow-x: auto; }
  .look-item { min-width: 260px; }
  .product-drawer { width: 100vw; padding: 72px 24px 32px; }
}
