:root {
  color: #414141;
  background: white;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 2px solid #825c22; outline-offset: 4px; }
figure, ul { margin: 0; }
p { margin: 0 0 .75rem; }
.site-width {
  width: 100%;
  max-width: 1170px;
  margin-inline: auto;
  padding-inline: 15px;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus {
  position: absolute;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .5rem 1rem;
  color: #414141;
  background: white;
}

.site-header {
  position: relative;
  text-align: center;
  background: #b6b6b4 url("/wp-content/themes/room-in-a-bag/img/header-bg.jpg") repeat;
  padding: 20px 0 30px;
}
.site-header::after {
  position: absolute;
  bottom: 5px;
  inset-inline: 0;
  height: 3px;
  background: white;
  content: "";
}
.brand { display: inline-block; vertical-align: top; }
.brand img { width: auto; height: 90px; }

.home-carousel { margin-top: 30px; }
.slider-stage { position: relative; touch-action: pan-y; }
.slider-stage .slide img { width: 100%; }
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  margin: 18px 0 20px;
}
.slider-dot {
  border: 0;
  padding: 0;
  width: 32px;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.slider-dot::before {
  content: "";
  display: block;
  width: 30px;
  height: 8px;
  margin-inline: auto;
  background: #dedede;
}
.slider-dot[aria-current="true"]::before { background: #a9a9a9; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 50px;
  border: 0;
  background: rgb(255 255 255 / .88);
  color: #414141;
  font-size: 33px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
}
.slider-arrow:first-of-type { left: 10px; }
.slider-arrow:last-of-type { right: 10px; }
.slider-stage:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-pause {
  width: 26px;
  height: 28px;
  border: 0;
  background: white;
  color: #5d5d5d;
  cursor: pointer;
}

.collection-menu ul, .footer-links, .contact ul { padding: 0; list-style: none; }
.collection-menu.horizontal { text-align: center; }
.collection-menu.horizontal ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px clamp(18px, 4vw, 40px);
}
.collection-menu.horizontal a {
  color: #666;
  display: inline-block;
  padding: 6px 2px;
  font-size: 1.3125rem;
}
.collection-menu.sidebar a {
  display: block;
  font-size: 1.5rem;
  padding: 2px 10px 8px;
}
.collection-menu.sidebar a:hover { background: #f5f5f5; }
.collection-menu [aria-current="page"] { font-weight: 700; }
.archive {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 25px;
  margin-top: 70px;
}
.archive h1 { margin: .15em 0 .8em; font-size: 2.1rem; font-weight: 500; }
.catalog-grid, .video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 25px;
}
.product-card {
  display: block;
  text-align: center;
  padding-bottom: 24px;
}
.product-card:hover { background: #f8f8f8; text-decoration: none; }
.product-pictures { position: relative; overflow: hidden; }
.product-pictures img { width: 100%; }
.product-pictures .alternate {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.product-card:is(:hover, :focus-visible) .alternate { opacity: 1; }
.product-card h2, .video-grid h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 20px 0 0;
}
.breadcrumbs {
  margin: 54px 0 40px;
  font-size: 1.125rem;
  color: #555;
}
.breadcrumbs ol { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; color: #777; padding-right: 10px; }
.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  gap: 6px;
  padding-bottom: 30px;
}
.product-gallery a { display: block; width: 100%; }
.product-gallery img { width: 100%; }

.company-section { padding-top: 30px; }
.company-section > :is(h1, h2) {
  margin: 10px 0 22px;
  padding-bottom: 15px;
  border-bottom: 3px solid #999;
  color: #8d6011;
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
}
.company-section h3 { font-size: 1.9rem; color: #8d6011; font-weight: 400; margin: 0 0 12px; }
.company-section p { font-size: 1.125rem; line-height: 2; color: #171717; }
.company-section img, .knowledge-lead img { margin-inline: auto; }
.knowledge-article {
  color: #626262;
  font-size: 1.125rem;
  line-height: 1.8;
}
.knowledge-article img { margin: 14px auto; }
.knowledge-article h2 { margin-top: 2.75rem; }
.knowledge-article ol { margin-top: .35rem; margin-bottom: 1.15rem; padding-left: 1.4em; }
.knowledge-article strong { color: #414141; }
.video-grid img { width: 100%; }

.media-dialog {
  width: min(100% - 32px, 1000px);
  max-height: calc(100% - 30px);
  padding: 12px;
  border: 0;
  border-radius: 4px;
  background: #171717;
  color: white;
  text-align: center;
}
.media-dialog::backdrop { background: rgb(0 0 0 / .78); }
.dialog-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 8px; }
.dialog-toolbar button {
  color: white;
  background: #353535;
  border: 1px solid #777;
  border-radius: 3px;
  min-height: 36px;
  padding-inline: 10px;
  cursor: pointer;
}
.dialog-content img { max-height: 75vh; width: auto; margin: auto; object-fit: contain; }
.dialog-content iframe { display: block; width: 100%; max-height: 75vh; aspect-ratio: 16 / 9; border: 0; }
.dialog-content p { margin-top: 10px; }
.dialog-content a { text-decoration: underline; }

.site-footer { margin-top: 75px; color: #414141; }
.footer-band { background: #f4f4f4; padding: 50px 0 28px; }
.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1.75fr 1.65fr 1.15fr 104px;
  gap: 20px;
  align-items: start;
}
.footer-links a { display: inline-block; margin-bottom: 8px; font-size: 1.125rem; }
.footer-links li:first-child { letter-spacing: .1em; }
.contact h2 { font-size: 1.1875rem; font-weight: 500; margin: 0 0 7px; }
.contact ul { line-height: 1.8; }
.contact-number { white-space: nowrap; }
.qr-code { width: 104px; text-align: center; }
.qr-code figcaption { margin-top: 16px; font-size: .9375rem; }
.copyright { padding-block: 7px 10px; margin-bottom: 0; font-size: .875rem; }
.not-found { padding-block: 70px 30px; }

@media (min-width: 768px) and (max-width: 991px) {
  .site-width { max-width: 750px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .site-width { max-width: 970px; }
}
@media (max-width: 900px) {
  .footer-columns { grid-template-columns: 1fr 1.4fr 1.3fr; }
}
@media (max-width: 767px) {
  .archive { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .collection-menu.sidebar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .collection-menu.sidebar a { font-size: 1.25rem; }
  .catalog-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .site-footer { margin-top: 48px; }
  .footer-band { padding-top: 30px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-columns nav { grid-column: 1 / -1; }
  .footer-links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
}
@media (max-width: 455px) {
  .site-header { padding-block: 17px 25px; }
  .brand img { height: 75px; }
  .home-carousel { margin-top: 20px; }
  .collection-menu.horizontal a { font-size: 1.17rem; }
  .product-gallery { grid-template-columns: 1fr; }
  .company-section h3 { font-size: 1.55rem; }
}
