/* static/style.css – kompletní soubor */

/* 1) Globální reset a základní layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  color: #333;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
}
footer {
  margin-top: auto;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px 0;
}
@media (max-width: 600px) {
  .footer-links {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 10px 20px;
    padding: 12px;
    font-size: 12px;
  }

  .footer-links a:nth-child(3) {
    grid-column: 4;
    justify-self: end;
  }

  .footer-links a {
    display: inline-block; /* každý odkaz bude mít vlastní prostor */
    margin: 0 8px; /* přidáme konkrétní mezery */
  }
}
.footer-links a:hover {
  text-decoration: underline;
}

/* 2) Logo a košík */
header .logo img {
  height: 150px;
}
.cart-wrapper {
  position: relative;
  cursor: pointer;
}
.cart-icon {
  width: 100px;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 300;
}
.cart-wrapper.open .cart-count {
  display: flex;
}
.cart-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: 320px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  overflow-y: auto;
  display: none;
  z-index: 300;
}
.cart-wrapper.open .cart-dropdown {
  display: block;
}
.cart-dropdown h2 {
  margin: 0;
  padding: 12px;
  font-size: 16px;
  border-bottom: 1px solid #e5e5e5;
}
.cart-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cart-item {
  display: flex;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  position: relative;
}
.cart-item img {
  width: 50px;
  border-radius: 4px;
}
.remove-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  border: none;
  background: none;
  font-size: 14px;
  cursor: pointer;
}
.cart-item-content {
  margin-left: 10px;
  flex: 1;
}
.cart-item-content .name,
.cart-item-content .price {
  font-weight: bold;
  font-size: 14px;
}
.cart-item-content .details {
  font-size: 12px;
}
.proceed-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 12px;
  padding: 10px 0;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
.proceed-btn:active {
  transform: scale(0.98);
}

/* 3) Grid produktů na titulní stránce */
.products-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}
.product {
  text-align: center;
}
.product-image {
  width: 100%;
  height: auto;
}
.product-name {
  margin: 10px 0;
  font-size: 28px;
  font-weight: bold;
}
.product-price {
  font-size: 20px;
  font-weight: bold;
}
.product-buttons {
  display: inline-flex;
  margin-top: 10px;
}
.size-wrapper {
  position: relative;
}
.size-btn,
.buy-btn {
  height: 46px;
  line-height: 46px;
  padding: 0 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.size-btn {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-right: none;
  border-radius: 4px 0 0 4px;
}
.size-btn:hover {
  background: #f5f5f5;
}
.size-btn:active {
  transform: scale(0.95);
}
.buy-btn {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-left: none;
  border-radius: 0 4px 4px 0;
}
.buy-btn:hover {
  background: #111;
}
.buy-btn:active {
  transform: scale(0.95);
}
.size-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  z-index: 250;
}
.size-dropdown.show {
  display: block;
}
.size-option {
  padding: 8px 12px;
  cursor: pointer;
}
.size-option:hover {
  background: #f5f5f5;
}

/* 4) Detail produktu */
.product-detail {
  display: flex;
  gap: 40px;
  padding: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.product-detail-images {
  display: flex;
  gap: 1rem;
  max-width: 620px;
  flex: 1 1 auto;
  position: relative;
}
.product-detail-images img {
  flex: 0 0 auto;
  max-width: 300px;
  width: auto;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}
.product-detail-images .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
}
.product-detail-images:hover .arrow {
  opacity: 1;
}
.product-detail-images .arrow.left {
  left: 8px;
  background-image: url("/static/images/arrow-left.png");
}
.product-detail-images .arrow.right {
  right: 8px;
  background-image: url("/static/images/arrow-right.png");
}
.product-detail-info {
  flex: 1 1 300px;
  max-width: 400px;
  margin-top: 0;
}
.product-detail-info .product-name {
  font-size: 32px;
  margin-bottom: 8px;
}
.product-detail-info .product-price {
  font-size: 24px;
  margin-bottom: 16px;
}
.product-detail-info .product-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* 5) Checkout – obnovené původní styly */
.checkout-page main.checkout-main {
  flex: 1;
  padding: 20px;
}
.checkout-page .checkout-title {
  font-size: 28px;
  margin: 0 auto 20px;
  text-align: center;
}
.checkout-page .checkout-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}
.checkout-page .checkout-form {
  flex: 1 1 600px;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.checkout-page .checkout-form fieldset {
  border: none;
  margin-bottom: 1.5rem;
}
.checkout-page .checkout-form legend {
  font-weight: bold;
  margin-bottom: 0.75rem;
}
.checkout-page .checkout-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.checkout-page .checkout-form label input,
.checkout-page .checkout-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-page .checkout-form label input:focus,
.checkout-page .checkout-form select:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}
/* terms-fieldset – funguje výchozí checkbox + text vedle sebe */
.checkout-page .checkout-form .terms-fieldset {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkout-page .checkout-form .terms-fieldset label {
  margin: 0;
  font-size:      0.9rem;
}
.checkout-page .checkout-form .terms-fieldset input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: auto;
  height: auto;
  margin: 0;
  cursor: pointer;
}
/* tlačítko odeslat */
.checkout-page .checkout-form .buy-btn {
  display: block;
  width: 100%;
  padding: 1rem 0;
  line-height: 1rem;
  background: #333;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  transition: background 0.2s;
}
.checkout-page .checkout-form .buy-btn:hover {
  background: #000;
}
.checkout-page .order-summary {
  flex: 0 0 300px;
  padding: 2rem 1rem;
}
.checkout-page .order-summary h2 {
  margin-bottom: 12px;
  font-size: 20px;
}
.checkout-page .order-summary ul {
  list-style: disc inside;
  margin: 0 0 1rem;
  padding-left: 20px;
}
.checkout-page .order-summary ul li {
  margin-bottom: 6px;
  font-size: 14px;
}
.checkout-page .order-total {
  font-weight: bold;
  text-align: left;
  margin: 0;
}
@media (max-width: 1024px) {
  .products-container {
    grid-template-columns: 1fr;
  }
}

/* Extra malé zařízení (telefony) */
@media (max-width: 600px) {
  .products-container {
    grid-template-columns: 1fr;
  }

  .product-name {
    font-size: 24px;
    margin: 15px 0 8px;
  }

  .product-price {
    font-size: 18px;
    margin: 0 0 12px;
  }

  .product-buttons {
    margin-top: 15px;
  }
}

/* ZMĚNA: zmenšit text a přidat padding tlačítku "Vyberte pobočku" */
#select-pickup-btn {
  font-size: 0.85rem;
  padding: 0.75rem 1.2rem;
  text-align: center;
}

/* 6) Titulní gallery – šipky a „Detail“ na titulní */
.image-container {
  position: relative;
}
.image-container img {
  display: block;
  width: 100%;
}
.image-container .controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.image-container .controls button {
  pointer-events: auto;
}
/* šipky */
.image-container .controls button.arrow {
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}
.image-container:hover .controls button.arrow,
.image-container.controls-visible .controls button.arrow {
  opacity: 1;
}
.image-container .controls button.arrow.left {
  background-image: url("/static/images/arrow-left.png");
  margin-left: 15px;
}
.image-container .controls button.arrow.right {
  background-image: url("/static/images/arrow-right.png");
  margin-right: 15px;
}
/* odstranit pseudo-křížky */
.image-container .controls button.arrow::before,
.image-container .controls button.arrow::after {
  display: none !important;
}
/* tlačítko Detail – objeví se až po hoveru/tapu, o 10px výš */
.image-container .controls .detail-btn {
  display: none;
  position: absolute;
  bottom: -6px;    /* posunuto nahoru oproti původním -36px */
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  z-index: 10;
}
.image-container:hover .controls .detail-btn,
.image-container.controls-visible .controls .detail-btn {
  display: block;
}

/* umístění detail tlačítka vpravo nahoře */
.image-container .controls .detail-btn {
  top: 2cm !important;
  right: 1cm !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

@media (max-width: 600px) {
  .product-detail-images {
    display: block;
    text-align: center;
  }

  .product-detail-images img {
    display: block;
    margin: 0 auto 10px;
    max-width: 90%;
    height: auto;
  }
}
@media (max-width: 600px) {
  .product-detail .product-buttons {
    margin-bottom: 300px;
  }
}
@media (max;width: 600px) {
  .checkout-page .checkout-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .checkout-page .checkout-form,
  .checkout-page .order-summary {
    width: 100%;
    max-width: 100%;
  }
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  z-index: 10000;
  padding: 0.75rem 1rem;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
  font-size: 0.9rem;
}
#cookie-banner .cookie-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
#cookie-banner a {
  color: #fff;
  text-decoration: underline;
}
#cookie-banner button#cookie-accept {
  background: #fff;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}
/* ---- mobilní zobrazení: přepneme, skryjeme desktop a ukážeme mobile ---- */
@media (max-width: 600px) {
  aside.order-summary {
    display: none !important;
  }
  .order-summary--mobile {
    display: block;
    /* odsazení pod tlačítkem „Přejít k placení“ */
    margin: 0.5rem auto !important;
    /* zarovnat na stejnou šířku jako formulář */
    width: 100%;
    max-width: 100%;
    /* stejný box-style jako desktopový souhrn */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
}

/* na desktopu mobilní souhrn skrýt */
@media (min-width: 601px) {
  .order-summary--mobile {
    display: none !important;
  }
}

/* na konec static/style.css */
@media (max-width: 600px) {
  /* zmenšíme font u mobilního souhrnu na 1rem */
  .order-summary--mobile h2,
  .order-summary--mobile .order-total {
    font-size: 1rem !important;
  }
}
/* schováme tlačítko „Detail“ */
.image-container .controls .detail-btn {
  display: none !important;
}
/* ------ Nastavení černé barvy pro názvy a ceny produktů ------ */
.product-name,
.product-price {
  color: #000 !important;
}

/* Produktový detail */
.product-detail-info .product-name,
.product-detail-info .product-price {
  color: #000 !important;
}
/* Pouze desktop (šířka nad 600 px) – mezera mezi footer-linky */
@media (min-width: 601px) {
  .footer-links a {
    margin: 0 1rem;
  }
}

/* Posun prvního obrázku (ten s příponou „A“) lehce nahoru pouze na PC */
@media (min-width: 601px) {
  .product-detail-images img:first-of-type {
    margin-top: -130px;
  }
}
/* Začátek mobilní úpravy */
@media (max-width: 768px) {
  .product-detail-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .product-name,
  .product-price,
  .product-description {
    margin-bottom: 10px;
  }

  .product-buttons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }
}
/* --- CONFIRMATION PAGE STYLING --- */

/* Obarvení celé stránky včetně středu */
body.order-confirmation-body {
  background: #f6f8fb;
}

.logo-large img {
    width: 150px !important;   /* Zvětši dle libosti, např. 90px */
    height: auto !important;
}
/* Samotný box */
.confirmation-box {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 36px 0 rgba(50,50,60,0.12), 0 1.5px 6px 0 rgba(100,100,110,0.06);
  max-width: 420px;
  margin: 48px auto 30px auto;
  padding: 36px 30px 32px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Nadpis a seznam položek */
.confirmation-box h1, .confirmation-box h2, .confirmation-box ul, .confirmation-box p {
  text-align: center !important;
}
.confirmation-box ul {
  display: inline-block;
  text-align: left;
  margin: 12px auto 18px auto;
  padding-left: 22px;
}

/* Zelený text úspěchu */
.confirmation-success {
  color: #28b6b6;
  font-weight: bold;
  margin: 10px 0 12px 0;
  font-size: 1.22em;
}

/* Upravené tlačítko pouze na confirmation */
.confirmation-box .buy-btn, .confirmation-box .back-home-btn {
  background: #222;
  color: #fff;
   padding: 14px 0;            /* Stejný padding nahoře a dole! */
  border-radius: 11px;
  border: none;
  font-weight: 600;
  font-size: 1.18em;
  width: 100%;
  max-width: 320px;
  margin: 28px auto 0 auto;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  display: block;
  text-align: center;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  line-height: 1.2;
  vertical-align: middle;
}
.confirmation-box .buy-btn:hover,
.confirmation-box .back-home-btn:hover {
  background: #444;
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 700px) {
  .confirmation-box {
    max-width: 98vw;
    padding: 20px 4vw;
    margin: 20px 1vw;
  }
  .order-confirmation-logo img {
    width: 75px !important;
    margin: 30px auto 20px auto;
  }
}
