/*
 * EKOMUZEUM — Modern Museum Shop
 * Etap 2: wieksza typografia + poziome logo
 */

:root {
  --museum-green: #86bc3e;
  --museum-green-dark: #34552b;
  --museum-background: #faf9f5;
  --museum-surface: #ffffff;
  --museum-sage: #edf2e7;
  --museum-text: #292d2a;
  --museum-muted: #687167;
  --museum-border: #daddd4;
}

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

html {
  font-size: 17px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--museum-background);
  color: var(--museum-text);
  font: 400 1rem/1.7 Arial, Helvetica, sans-serif;
  text-align: left;
}

a {
  color: var(--museum-green-dark);
  text-decoration: none;
}

a:hover {
  color: var(--museum-green-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--museum-green);
  outline-offset: 3px;
}

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

#container {
  width: 100%;
  overflow: visible;
}

#head1,
#head2,
#head3,
#body,
#foot {
  width: 100%;
}

#head1 .container,
#head2 .container,
#head3 .container,
#body .container,
#foot .container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

#header {
  background: var(--museum-surface);
  border-bottom: 1px solid var(--museum-border);
}

#head1 {
  min-height: 42px;
  background: var(--museum-green-dark);
}

#head1 .container {
  padding: 0 28px;
}

#menu1 ul {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 8px 0;
}

#menu1 li {
  float: none;
  padding: 0;
}

#menu1 li a,
#menu1 li.lBasket a {
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
}

#menu1 li.lBasket span {
  color: #fff;
}

#head2 {
  background: var(--museum-surface);
}

#head2 .container {
  height: auto;
  min-height: 172px;
  padding: 28px 30px 24px;
}

#logo {
  padding: 0;
}

#logo #title a {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  line-height: 1.2;
  text-transform: none;
}

#logo #title img {
  display: block;
  width: auto;
  max-width: min(760px, 100%);
  max-height: 148px;
  object-fit: contain;
}

#logo #slogan {
  margin-top: 14px;
  padding: 0;
  color: var(--museum-muted);
  font-size: 1.5rem;
}

#head3 {
  background: var(--museum-sage);
  border-top: 1px solid var(--museum-border);
}

#head3 .container {
  height: auto;
  min-height: 62px;
}

#menu2 ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: auto;
  margin: 0;
  padding: 0 15px;
}

#menu2 li {
  float: none;
}

#menu2 li a {
  float: none;
  display: block;
  width: auto;
  height: auto;
  padding: 18px 18px;
  color: var(--museum-green-dark);
  font-size: 1rem;
  font-weight: 600;
  transition: background .2s ease;
}

#menu2 li a:hover,
#menu2 .selected a {
  background: #dfead5;
  text-decoration: none;
}

#body {
  padding: 36px 24px 60px;
}

#body .container {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 0;
  background: transparent;
  overflow: visible;
}

#column {
  float: none;
  flex: 0 0 245px;
  width: 245px;
  padding: 0;
}

#content {
  float: none;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  padding: 0;
  text-align: left;
}

#page,
#product {
  float: none;
  width: 100%;
  margin: 0;
  padding: 34px;
  background: var(--museum-surface);
  border: 1px solid var(--museum-border);
  border-radius: 8px;
  text-align: left;
}

#page h1,
#product h1 {
  margin: 0 0 25px;
  padding: 0;
  color: var(--museum-text);
  font: 500 clamp(2rem, 3vw, 2.8rem)/1.18 Georgia, "Times New Roman", serif;
}

#page div.breadcrumb {
  position: static;
  margin: 0 0 22px;
  padding: 0;
}

.breadcrumb {
  color: var(--museum-muted);
  font-size: .92rem;
}

#page div.content,
#product div.content {
  font-size: 1.02rem;
  line-height: 1.75;
}

#column .type {
  margin: 0;
  padding: 16px 18px;
  background: var(--museum-green-dark);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
}

#menu3 {
  padding: 10px 0;
  background: var(--museum-surface);
  border: 1px solid var(--museum-border);
  border-radius: 0 0 8px 8px;
}

#menu3 ul {
  padding: 0;
}

#menu3 li {
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
}

#menu3 a {
  display: block;
  width: auto;
  padding: 12px 18px;
  font-size: .98rem;
  line-height: 1.45;
}

#menu3 a:hover,
#menu3 .selected > a:first-child {
  background: var(--museum-sage);
  color: var(--museum-green-dark);
  text-decoration: none;
}

#menu3 .sub1 li {
  padding: 0 0 0 14px;
}

#searchForm {
  position: static;
  margin: 0 0 20px;
  padding: 16px;
  background: var(--museum-surface);
  border: 1px solid var(--museum-border);
  border-radius: 8px;
}

#searchForm .input {
  width: 100%;
  min-width: 0;
  padding: 12px 12px;
  border: 1px solid var(--museum-border);
  border-radius: 5px;
  font: inherit;
}

#searchForm .submit {
  margin-top: 12px;
  padding: 10px 17px;
}

.submit,
#products li .basket a {
  display: inline-block;
  width: auto;
  padding: 12px 20px;
  border: 1px solid var(--museum-green-dark);
  border-radius: 5px;
  background: var(--museum-green-dark);
  color: #fff;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.submit:hover,
#products li .basket a:hover {
  background: #243e1e;
  color: #fff;
  text-decoration: none;
}

#products,
#products ul.list {
  float: none;
  width: 100%;
  clear: both;
}

#products .sort,
#products .pages {
  float: none;
  width: 100%;
  font-size: .98rem;
}

#products ul.list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

#products ul.list > li:not(.pages) {
  float: none;
  clear: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 18px;
  background: var(--museum-surface);
  border: 1px solid var(--museum-border);
  border-radius: 8px;
  text-align: center;
}

#products .list li .photo {
  margin-bottom: 16px;
  line-height: normal;
}

#products .list li .photo img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

#products li h2 {
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

#products li h2 a {
  color: var(--museum-text);
}

#products li h3,
#products li div.description {
  font-size: .98rem;
  line-height: 1.7;
}

#products li .price,
#products li .noPrice {
  margin: 16px 0 8px;
  color: var(--museum-green-dark);
  font-size: 1.02rem;
}

#products li .price strong {
  font-size: 1.4rem;
}

#products li .basket {
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
}

#products li .basket a {
  display: block;
  width: 100%;
}

#product {
  font-size: 1rem;
}

#product #box {
  padding: 22px;
  border: 1px solid var(--museum-border);
  border-radius: 8px;
  background: var(--museum-sage);
  color: var(--museum-text);
}

#product #box #price {
  color: var(--museum-green-dark);
  font-size: 1.15rem;
}

#product #box #price strong {
  font-size: 1.6rem;
}

#product #box #available {
  color: var(--museum-muted);
}

#foot {
  float: none;
  height: auto;
  min-height: 120px;
  background: var(--museum-green-dark);
}

#foot .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 24px;
  background: transparent;
  color: #fff;
}

#copy,
#foot .foot {
  float: none;
  padding: 0;
}

#foot a {
  color: #fff;
}

#body.order .container {
  width: 100%;
  max-width: 1280px;
  background: transparent;
}

.order #column {
  display: none;
}

.order #content {
  width: 100%;
  flex: 1 1 100%;
}

@media (max-width: 1050px) {
  #body .container {
    gap: 22px;
  }

  #column {
    flex-basis: 210px;
    width: 210px;
  }

  #products ul.list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #logo #title img {
    max-height: 122px;
  }
}

@media (max-width: 700px) {
  html {
    font-size: 16px;
  }

  body {
    margin: 0;
  }

  #head1 .container {
    padding: 0 14px;
  }

  #head2 .container {
    min-height: 0;
    padding: 18px 16px;
  }

  #logo {
    padding: 0;
  }

  #logo #title img {
    max-height: 92px;
  }

  #logo #slogan {
    margin-top: 10px;
    font-size: .98rem;
  }

  #menu2,
  #menu2 ul {
    width: 100%;
  }

  #menu2 ul {
    display: flex;
    padding: 6px;
  }

  #menu2 li {
    width: auto;
    margin: 0;
    border: 0;
  }

  #menu2 li a {
    width: auto;
    padding: 10px 12px;
    font-size: .92rem;
  }

  #body {
    padding: 20px 12px 35px;
  }

  #body .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  #column,
  #content {
    float: none;
    flex: none;
    width: 100%;
    min-width: 0;
  }

  #searchForm {
    position: static;
    margin: 0 0 16px;
  }

  #menu3 li {
    width: auto;
    margin: 0;
    border: 0;
  }

  #menu3 li a {
    width: auto;
    padding: 10px 16px;
    font-size: .98rem;
  }

  #page,
  #product {
    width: 100%;
    margin: 0;
    padding: 22px 16px;
  }

  #page div.breadcrumb {
    position: static;
    margin-bottom: 15px;
  }

  #products ul.list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #products ul.list > li:not(.pages) {
    width: auto;
    margin: 0;
    padding: 12px;
  }

  #products li .basket {
    width: 100%;
  }

  #product #box {
    float: none;
    width: 100%;
    margin: 20px 0;
  }

  #foot .container {
    padding: 25px 16px;
  }
}

@media (max-width: 420px) {
  #products ul.list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Opisy produktow - maksymalnie 12 linii */

#products li div.description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 12;
  line-clamp: 12;
  overflow: hidden;
  line-height: 1.6;
  text-align: left;
}

/* EKOMUZEUM — koszyk z ikona i licznikiem */

#menu1 li.lBasket {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

#menu1 li.lBasket > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0;
}

#menu1 li.lBasket > a::before {
  content: "";
  display: inline-block;
  width: 23px;
  height: 23px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 002 1.61h9.72a2 2 0 002-1.61L23 6H6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

#menu1 li.lBasket > span {
  display: inline-flex;
  align-items: center;
  font-size: 0;
  color: transparent;
}

#menu1 li.lBasket > span strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  border-radius: 50%;
  background: #86bc3e;
  color: #182614;
  font-size: 14px;
  font-weight: 700;
}

/* Jednolita typografia opisow produktow */

#products ul.list > li div.description,
#products ul.list > li div.description p,
#products ul.list > li div.description span,
#products ul.list > li div.description font,
#products ul.list > li div.description strong,
#products ul.list > li div.description em,
#products ul.list > li div.description a {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

/* Zachowanie pogrubien i kursywy */

#products ul.list > li div.description strong,
#products ul.list > li div.description b {
  font-weight: 700;
}

#products ul.list > li div.description em,
#products ul.list > li div.description i {
  font-style: italic;
}

/* Maksymalnie 12 linii opisu */

#products ul.list > li div.description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 12;
  line-clamp: 12;
  overflow: hidden;
  text-align: left;
}
