html {
  box-sizing: border-box;
  overflow-x: clip;
  max-width: 100%;
}
*,
::after,
::before {
  box-sizing: inherit;
}

body {
  background-color: #f2ecec;
  display: flex;
  flex-direction: column;
  font-family: montserrat, sans-serif;
  font-size: 18px;
  padding: 0;
  align-items: center;
  margin: 0;
  max-width: 100%;
  width: 100%;
  font-weight: 400;
  overflow-x: clip;
}

.line {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  background-color: #f2ecec;
  height: 45px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media only screen and (max-width: 500px) {
  /*.menu {
    max-width: fit-content;
    font-size: 2rem;
    margin-right: 2%;
  }*/
}
@media only screen and (min-width: 500px) {
  .line {
    height: 45px;
  }
}

.menu {
  /* max-width: fit-content;*/
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.menu a {
  color: #070c12;
  text-decoration: none;
  font-size: 1.8vw;
  font-family: rubik distressed;
  font-weight: 300;
  padding-left: 0.3em;
  padding-right: 0.2em;
  margin: 1vw;
}

.menu a::before {
  content: "/";
  color: #cb2026;
  font-weight: 900;
  font-size: 1.2em;
  margin-right: 0.3em;
  -webkit-text-stroke: 0.5px #cb2026;
}

@media only screen and (max-width: 800px) {
  .menu {
    display: none;
  }
}

.ham {
  /*hamburger a krizek*/
  position: absolute;
  right: 15px; /* Pevná vzdálenost od pravého okraje */
  top: 7px; /* Vertikálně vycentrovaný */

  width: 30px; /* Pevná šířka místo 3vw */
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  z-index: 9999;
}
.cara1,
.cara2,
.cara3 {
  width: 100%;
  flex-shrink: 0;
  height: 2px;
  background-color: #070c12;
  /*background-color: #ccbd71;*/
}
.cara2 {
  background-color: #cb2026;
}
@media only screen and (min-width: 800px) {
  .ham,
  .cara1,
  .cara2,
  .cara3 {
    display: none;
  }
}
@media only screen and (min-width: 500px) {
  .ham {
    right: 20px; /* Na mobilu trochu blíž ke kraji */
    width: 30px; /* Na mobilu trochu menší */
  }
}
.caraB {
  display: none;
}
.caraA {
  transform: rotate(45deg);
  position: relative;
  top: 20%;
}
.caraC {
  transform: rotate(-45deg);
  position: relative;
  bottom: 30%;
}

/*logo small v navigaci*/

.logoS {
  width: auto;
  height: 45px;
  padding: 5px;
  box-sizing: border-box; /* padding se počítá dovnitř */
  position: absolute;
  left: 32px; /* stejná vzdálenost jako má .ham od pravého okraje */
  top: 50%;
  transform: translateY(-50%); /* vycentrované vertikálně */

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.logoS.visible {
  opacity: 1;
  visibility: visible;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.visible {
  opacity: 1;
  visibility: visible;
}

/* Language Switcher Styles */
.lang-switcher {
  display: inline-flex;
  gap: 0.3em;
  margin-left: 1em;
  align-items: center;
  vertical-align: middle;
  padding-bottom: 1%;
}

.lang-btn {
  background-color: transparent;
  color: #070c12;
  border: 1px solid #cb2026;
  font-size: 1.6vw;
  font-family: rubik distressed;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
  margin: 0;
}

.lang-btn:hover {
  background-color: #cb2026;
  color: #070c12;
}

.lang-btn.active {
  background-color: #cb2026;
  color: #070c12;
  font-weight: 600;
}

/* Mobile Language Switcher */
.lang-switcher-mobile {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 1em 0;
  border-top: 1px solid #cb2026;
  margin-top: 1em;
}

.lang-switcher-mobile .lang-btn {
  font-size: 1.2rem;
  padding: 0.5em 1.2em;
}

/* Hide desktop language switcher on mobile */
@media only screen and (max-width: 800px) {
  .menu .lang-switcher {
    display: none;
  }
}

/* Hide mobile language switcher on desktop */
@media only screen and (min-width: 801px) {
  .lang-switcher-mobile {
    display: none;
  }
}

/*navigace na klik*/
.nav {
  background-color: #070c12;
  position: fixed;
  z-index: 9000;
  width: 100%;
  height: 100vh;
  left: 0;
  top: 0;
  margin-top: 0;
  padding: 10%;
  padding-top: 30%;
}
ul {
  list-style: none;
  line-height: 300%;
  display: flex;
  flex-direction: column;
}
a.nav-link {
  color: #cb2026;
}
.nav-link {
  text-align: left;
  text-decoration: none;
  font-family: sansation, sans-serif;
  font-size: 1.6rem;
  color: #cb2026;

  /*border-bottom: 1px solid #07192f;*/
}

@media only screen and (min-width: 800px) {
  .nav {
    display: none;
  }
}

.hidden {
  display: none;
}

.smazat {
  margin-top: 30%;
}

.merch {
  width: 100%;
}

.stop {
  width: 100%;
  height: 45px;
}
.intro {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem 1rem 1rem;
  font-size: 17px;
  line-height: 1.6;
}
h2 {
  font-family: sansation, sans-serif;
  color: #cb2026;
  padding-bottom: 2rem;
}
.title {
  color: #070c12;
}

.hudba,
.textil {
  padding: 20px 10px 20px 10px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.hudba > h2,
.textil > h2 {
  margin-bottom: 0;
}
.hudba .hudba {
  padding-top: 0;
}

.cds-toggle {
  margin-bottom: 1rem;
}

.cds-toggle summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cds-toggle summary::-webkit-details-marker {
  display: none;
}

.cds-toggle summary h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 30%;
  background-color: transparent;
  border: 2px solid #cb2026;
  border-radius: 3px;
  padding: 0.4em 1.2em;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin: 0.3rem 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  box-shadow: rgb(201, 46, 70) 0px 5px 0px 0px;
}

.cds-toggle summary h2:hover {
  background-color: #cb2026;
  color: #f2ecec;
  box-shadow: rgb(201, 46, 70) 0px 7px 0px 0px;
  background-color: rgb(255, 56, 86);
  /*50, 168, 80*/
  box-shadow: rgb(201, 46, 70) 0px 0px 0px 0px;
  transform: translateY(5px);
  transition: 200ms;
}

.cds-toggle[open] summary h2 {
  background-color: #cb2026;
  color: #f2ecec;
}

.cds-toggle summary h2::after {
  content: "\25B6";
  font-size: 0.7em;
  transition: transform 0.3s;
}

.cds-toggle[open] summary h2::after {
  transform: rotate(90deg);
}

.cds-toggle summary .close-btn {
  display: none;
  font-size: 4rem;
  color: #cb2026;
  cursor: pointer;
  padding: 0 0.5rem;
  font-family: sansation, sans-serif;
  line-height: 1;
}

.cds-toggle[open] summary .close-btn {
  position: fixed;
  top: 55px;
  right: 20px;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #cb2026;
  color: #f2ecec;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 3.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@media only screen and (max-width: 800px) {
  .cds-toggle summary h2 {
    margin-left: 0;
  }

  .cds-toggle[open] summary .close-btn {
    width: 50px;
    height: 50px;
    font-size: 3rem;
  }
}

.items {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.items .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.items .item h3 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sansation, sans-serif;
}

.items .item .size-label {
  display: block;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
  font-family: sansation, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.items .item .size-select {
  width: 100%;
  max-width: 200px;
  padding: 0.5em;
  background-color: #f2ecec;
  color: #070c12;
  border: 2px solid #cb2026;
  border-radius: 3px;
  font-family: montserrat, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.items .item .size-select:hover,
.items .item .size-select:focus {
  outline: none;
  border-color: #070c12;
}

.items .item .buy-button {
  margin-top: 1em;
  background-color: #cb2026;
  color: #f2ecec;
  border: 2px solid #cb2026;
  font-family: "Rubik Distressed", cursive;
  font-size: 1rem;
  padding: 0.5em 1.5em;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.items .item .buy-button:hover {
  background-color: transparent;
  color: #cb2026;
}

.items .item .merchimg {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}


.textil .merchimg {
  filter: drop-shadow(0 0 15px #fff);
}

@media only screen and (min-width: 800px) {
  .items {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .items .item {
    flex: 0 0 250px;
  }
}

/* Order Summary */
.order-summary {
  width: 80%;
  background-color:#f2efef;
  color: #070c12;
  padding: 2rem 1.5rem;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);

}

.order-summary h2 {
  font-family: sansation, sans-serif;
  margin-bottom: 1.5rem;
  color: #cb2026;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #1a2233;
  max-width: 600px;
  margin: 0 auto;
}

.order-item-name {
  flex: 1;
  text-align: left;
  font-family: sansation, sans-serif;
  font-size: 0.95rem;
}

.order-item-qty {
  width: 50px;
  padding: 0.3em 0.4em;
  text-align: center;
  background-color: #ece8e8;

  color: #070c12;
  border: 1px solid #cb2026;
  border-radius: 3px;
  font-family: montserrat, sans-serif;
  font-size: 0.9rem;
}

.order-item-remove {
  background: none;
  border: none;
  color: #cb2026;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.4rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.order-item-remove:hover {
  color: #f2ecec;
}

@media only screen and (max-width: 500px) {
  .order-item {
    gap: 0.5rem;
  }
  .order-item-name {
    font-size: 0.85rem;
  }
}

/* Order Form */
.order-form-section {
  width: 80%;
  background-color: #f2efef;
  margin:0 auto;
 
  color: #070c12;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.order-form-section h2 {
  font-family: sansation, sans-serif;
  margin-bottom: 1.5rem;
  color: #cb2026;
}

.order-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: sansation, sans-serif;
  font-size: 1rem;
  color: #070c12;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  background-color: #f2ecec;
  color: #070c12;
  border: 1px solid #cb2026;
  border-radius: 3px;
  font-family: montserrat, sans-serif;
  font-size: 0.95rem;
}

.form-group textarea {
  resize: vertical;
  font-family: montserrat, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #070c12;
}

.submit-order {
  width: 100%;
  padding: 0.8em 1.5em;
  background-color: #cb2026;
  color: #070c12;
  border: 2px solid #cb2026;
  font-family: "Rubik Distressed", cursive;
  font-size: 1.1rem;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 3px;
  margin-top: 1rem;
}

.submit-order:hover {
  background-color: transparent;
  color: #cb2026;
}

@media only screen and (max-width: 500px) {
  .order-form-section {
    padding: 1.5rem 1rem;
  }
  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
  }
}

.contact {
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  background-color: #070c12;
  color: #f2ecec;
}
.contact img {
  width: 50px;
  height: auto;
  margin-bottom: 1rem;
}
.socialmedia {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
}

@media only screen and (min-width: 800px) {
  .contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    padding: 2rem 0;
    justify-items: center;
  }

  .socialmedia {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
  }

  .contact img {
    width: 60px;
  }
}

footer {
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  background-color: #070c12;
  color: #f2ecec;
  font-size: 14px;
}

footer a {
  color: #cb2026;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #f2ecec;
}

/* Fix styles for viewports 1350px and above */
@media only screen and (min-width: 1350px) {
  body {
    overflow-x: clip;
    font-size: 20px;
  }

  .line {
    overflow: visible;
    max-width: 1350px;
    margin: 0 auto;
    height: 60px;
  }

  .menu a {
    font-size: 24.3px;
    margin: 13.5px;
  }

  .lang-btn {
    font-size: 21.6px;
  }

  .merch {
    max-width: 1350px;
    margin: 0 auto;
  }

  .order-summary {
    max-width: 1350px;
    margin: 0 auto;
  }

  .order-form-section {
    max-width: 1350px;
    margin: 0 auto;
  }

  .contact {
    max-width: 1350px;
    margin: 0 auto;
  }

  footer {
    max-width: 1350px;
    margin: 0 auto;
  }
  footer p {
    font-size: 18px;
  }

  .stop {
    max-width: 1350px;
    margin: 0 auto;
    height: 60px;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #070c12;
    color: #f2ecec;
  }

  .line {
    background-color: #070c12;
  }

  .menu a {
    color: #f2ecec;
  }

  .cara1,
  .cara3 {
    background-color: #f2ecec;
  }

  .lang-btn {
    color: #f2ecec;
  }

  .lang-btn:hover {
    color: #070c12;
  }

  .lang-btn.active {
    color: #070c12;
  }

  .title {
    color: #f2ecec;
  }
  .hudba,
  .textil {
    color: #f2ecec;
  }

  .cds-toggle summary h2 {
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.15);
    box-shadow: rgb(201, 46, 70) 0px 5px 0px 0px;
  }

  .items .item .buy-button {
    color: #f2ecec;
  }

  .items .item .buy-button:hover {
    color: #cb2026;
  }

  .items .item .size-select {
    background-color: #070c12;
    color: #f2ecec;
  }

  .order-summary {
    background-color: #1a1a1a;
    color:#f2ecec
  }

  .order-item-qty {
    background-color: #2a2a2a;
    color:#f2ecec
  }

  .order-form-section {
    background-color: #1a1a1a;
      }
  
      .form-group label {
    color: #f2ecec;}

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group textarea {
    background-color: #2a2a2a;
    color:#f2ecec
  }

  .contact {
    background-color: #363636;
    color: #f2ecec;
  }

  footer {
    background-color: #363636;
    color: #f2ecec;
  }

  footer a:hover {
    color: #f2ecec;
  }
}
