@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #1f3c2d;
  --beige: #efe9d9;
  --gold: #c2a15b;
  --wine: #d24f3d;
  --black: #000;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.45;
  color: var(--black);
  background-color: var(--beige);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Poppins", sans-serif;
}

/* navigace */

/* Základní nastavení navbaru */
#mainNav {
  background-color: transparent;
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
  letter-spacing: 0.5px;
  z-index: 1000;
}

#mainNav.nav-open {
  background-color: var(--green) !important; /* nebo var(--green) */
  transition: background-color 0.25s ease;
}

/* pokud máš .scrolled a nav-open najednou, uprav prioritu */
#mainNav.scrolled.nav-open {
  background-color: #1f3c2d !important;
}

#mainNav-single {
  background-color: var(--green);
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
  letter-spacing: 0.5px;
  z-index: 1000;
}

#mainNav.scrolled {
  background-color: #1f3c2d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Položky menu */
.navbar-nav .nav-link {
  color: #efe9d9 !important;
  font-family: "Inter", sans-serif;
  transition:
    color 0.3s ease,
    border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
}

.navbar-nav .nav-link:hover {
  color: #c2a15b !important;
  border-bottom: 2px solid #c2a15b;
}

.navbar-nav .nav-link.active {
  color: #c2a15b !important;
  border-bottom: 2px solid #c2a15b;
}

/* Styl hamburgeru */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.kosik {
  top: -6px;
  right: -10px;
  font-size: 0.7rem;
  display: none;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--green);
  border: none;
  transition: all 0.2s ease;
}
.btn-gold:hover {
  background-color: var(--wine);
  color: var(--beige);
}

.hero .btn-gold:hover {
  background-color: var(--wine);
  color: var(--black);
}

.bg-green {
  background-color: var(--green) !important;
}
.bg-beige {
  background-color: var(--beige) !important;
}
.text-gold {
  color: var(--gold) !important;
}

.gradient-border {
  --borderWidth: 3px;
  background: var(--gold);
  position: relative;
  border-radius: var(--borderWidth);
}
.gradient-border:after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--borderWidth));
  left: calc(-1 * var(--borderWidth));
  height: calc(100% + var(--borderWidth) * 2);
  width: calc(100% + var(--borderWidth) * 2);
  background: linear-gradient(60deg, #fff, var(--gold), #fff, var(--gold));
  border-radius: calc(2 * var(--borderWidth));
  z-index: -1;
  animation: animatedgradient 6s ease alternate infinite;
  background-size: 300% 300%;
}

@keyframes animatedgradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.site-logo {
  align-items: center;
  max-width: 150px;
  margin-bottom: 3rem;
}

.swing-in-top-fwd {
  -webkit-animation: swing-in-top-fwd 1s cubic-bezier(0.375, 0.885, 0.32, 1.275)
    both;
  animation: swing-in-top-fwd 1s cubic-bezier(0.375, 0.885, 0.32, 1.275) both;
}

@-webkit-keyframes swing-in-top-fwd {
  0% {
    -webkit-transform: rotateX(-100deg);
    transform: rotateX(-100deg);
    -webkit-transform-origin: top;
    transform-origin: top;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    -webkit-transform-origin: top;
    transform-origin: top;
    opacity: 1;
  }
}
@keyframes swing-in-top-fwd {
  0% {
    -webkit-transform: rotateX(-100deg);
    transform: rotateX(-100deg);
    -webkit-transform-origin: top;
    transform-origin: top;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    -webkit-transform-origin: top;
    transform-origin: top;
    opacity: 1;
  }
}

.swing-in-bottom-bck {
  -webkit-animation: swing-in-bottom-bck 1s
    cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  animation: swing-in-bottom-bck 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@-webkit-keyframes swing-in-bottom-bck {
  0% {
    -webkit-transform: rotateX(-70deg);
    transform: rotateX(-70deg);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0);
    transform: rotateX(0);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    opacity: 1;
  }
}
@keyframes swing-in-bottom-bck {
  0% {
    -webkit-transform: rotateX(-70deg);
    transform: rotateX(-70deg);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0);
    transform: rotateX(0);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    opacity: 1;
  }
}

.soc img {
  width: 50px;
  margin-top: 2.5rem;
}

/* hero sekce */
.hero {
  height: 100vh;
  color: var(--beige);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url("images/hero2.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(31, 60, 45, 0.8);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.miniHero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url("images/aboutHero.jpg");
  background-size: cover;
  background-position: top;
  position: relative;
}

.miniHero .hero-content {
  padding: 9rem 1rem 7rem;
  background-color: rgba(31, 60, 45, 0.8);
  color: var(--beige);
}

/* produkty */
.product-card {
  background: #fff;
  border: none;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 1.25rem;
}

/* Ať sekce price jde ke dnu karty */
.product-card .price {
  margin-top: auto;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card a {
  text-decoration: none;
  color: #000;
}

/* Obrázky */
.image-wrapper {
  position: relative;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  display: block;
  transition:
    opacity 0.5s ease,
    transform 0.7s ease;
}

/* Hover obraz */
.image-wrapper .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(1);
}

/* Default obraz */
.image-wrapper .img-default {
  transform: scale(1);
}

/* Efekt při hoveru */
.product-card:hover .img-hover {
  opacity: 1;
  transform: scale(1.15); /* jemný zoom-in */
}

.product-card:hover .img-default {
  opacity: 0;
  transform: scale(1.15);
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card img {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* FAQ */
/* Základ */
.faq-section details {
  border-bottom: 1px solid #ccc;
  padding: 0.75rem 0;
  overflow: hidden;
}

/* Summary vzhled */
.faq-section summary {
  font-size: 1.2rem;
  font-weight: normal;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 2.7rem;
  margin-bottom: 0.5rem;
}

/* Skrytý marker */
.faq-section summary::marker {
  content: "";
}

/* Kolečka + / - */
.faq-section summary::before {
  content: "+";
  position: absolute;
  left: 0;
  width: 2rem;
  height: 2rem;
  background: #333;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 2rem;
  font-size: 1.2rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

/* Při otevření */
.faq-section details[open] summary::before {
  content: "–";
  background: #000;
}

/* Obsah */
.faq-content {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.35s ease;
  margin-left: 2.8rem;
  font-weight: 300;
}

/* Otevřené */
.faq-section details[open] .faq-content {
  max-height: 500px; /* dostatečný strop */
  opacity: 1;
  transform: translateY(0);
}

/* newsletter */
.newsletter input {
  border-radius: 30px;
  border: none;
  padding: 0.75rem 1rem;
}

.blog {
  background-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("images/skin.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

footer {
  background-color: #000;
  color: var(--beige);
  padding: 2rem 0;
  font-size: 0.9rem;
}

footer a {
  color: var(--beige);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

/* single page */

.product-section {
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.product-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price {
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 1rem;
}

.thumbnail-gallery .thumb {
  max-width: 80px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.thumbnail-gallery .thumb:hover,
.thumbnail-gallery .thumb.active {
  opacity: 1;
  transform: scale(1.05);
  border: 2px solid var(--gold, #c7a76c);
}

.composition {
  background-color: var(--green);
  color: var(--beige);
  padding: 40px;
  border-radius: 10px;
  border-top-left-radius: 0;
  text-align: left !important;
}

.composition h3 {
  color: var(--beige);
}

#productTabs .nav-link.active {
  background-color: var(--green) !important;
  color: #fff !important;
}
#productTabs .nav-link {
  background-color: #fff !important;
  border: 1px solid var(--green) !important;
  margin-right: 1rem;
  color: #000;
  box-shadow: -1px -1px 28px -14px rgba(0, 0, 0, 1);
}

#productTabs .nav-link:hover {
  box-shadow: -1px -1px 8px -14px rgba(0, 0, 0, 1);
}

.usage,
.related {
  margin-top: 50px;
}

.related {
  background-color: #fff;
}

.related .product-card.small-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: none;
}

.related .product-card.small-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
  background: transparent;
  margin-top: 30px;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red);
}

/* About */

.value-box {
  background-color: var(--beige);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  border: 1px solid #2b2b2b;
  transition: 0.3s ease;
}

blockquote {
  font-size: 1.25rem;
  border-left: 4px solid #c6a667;
  padding-left: 1rem;
  margin: 2rem 0;
}

/* košík */
.cart-header {
  font-size: 0.9rem;
}

.cart-item {
  transition: background-color 0.2s ease;
}

.cart-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.cart-img {
  max-height: 100px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.cart-img:hover {
  transform: scale(1.05);
}

.cart-name-link {
  color: var(--dark);
  text-decoration: none;
}

.cart-name-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.qty-input {
  max-width: 80px;
  margin: 0 auto;
}

.cart-table img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.empty-cart {
  padding: 60px 0;
  text-align: center;
}
.summary {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  position: sticky;
  top: 100px;
}
.cart-item .cart-name-link {
  color: #111;
  text-decoration: none;
}
.cart-item .cart-name-link:hover {
  color: var(--gold);
}
.btn-remove img {
  opacity: 0.6;
  transition: opacity 0.2s;
}
.btn-remove:hover img {
  opacity: 1;
}

input {
  &::-webkit-inner-spin-button {
    opacity: 1 !important;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 1.5rem !important;
  }

  .kosik {
    top: 12px;
    left: 30px;
    font-size: 0.7rem;
    width: 1.5rem;
    display: none;
  }
}

@media (max-width: 575.98px) {
  .site-logo {
    align-items: center;
    max-width: 100px;
    margin-bottom: 2.5rem;
  }

  .cart-header {
    display: none;
  }
  .cart-item {
    text-align: center;
  }
  .cart-item .btn-remove {
    margin-top: 0.5rem;
  }
}
