/* --- 🔹 MODÁLNY POPUP PRE KONFIGURÁCIU PRODUKTU --- */
.product-config {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: #f0f0f0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  z-index: 9999;
  padding: 2rem 2.5rem;
  width: 90%;
  max-width: 420px;
  text-align: left;
  animation: fadeIn 0.25s ease-out;
  display: none;
}

.product-config.show {
  display: block;
}

/* --- Blurované pozadie za popupom --- */
.popup-overlay {
  position: fixed;
  inset: 0; /* skrátený zápis top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* --- Titulok a polia --- */
.product-config h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.product-config label {
  display: block;
  margin-top: 0.75rem;
  font-weight: 500;
  color: #444;
}

.product-config select,
.product-config input[type="text"] {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.8rem;
  border: 0px;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  text-transform: uppercase;
}

.product-config select {
  background: white;
}

.product-config .confirm-add {
  margin-top: 1.4rem;
  width: 100%;
  background: #333;
  color: white;
  font-weight: 600;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  font-family: 'Neue Frutiger', Outfit, Inter, poppins;
  box-sizing: border-box;
}

.product-config .confirm-add:hover {
  background: #555;
}

/* --- Animácia --- */
@keyframes fadeIn {
  from {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.box-header td {
  background:none;
  font-weight:600;
  border-top:2px solid #eee;
}

.box-footer td {
  background:#fafafa;
  border-bottom:2px solid #eee;
}

.remove-box {
  margin-left:0px;
  color:#c00;
  font-size:1.1rem;
  text-decoration:none;
  white-space: nowrap;
}

.standalone-header td {
  padding-top:20px;
  font-weight:600;
}

.box-header {
  cursor:pointer;
}

.box-toggle {
  display:flex;
  align-items:center;
  gap:8px;
}

.box-arrow {
  transition: transform 0.2s ease;
}

.box-header.collapsed .box-arrow {
  transform: rotate(-90deg);
}

.box-collapsed {
  border: 0 !important;
  display:none !important;
}

.box-collapsed > td {
  display: none !important;
}

.box-header {
  cursor:pointer;
}

.box-bg-cart {
  background: #f9fafb;
}

.box-toggle {
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 1.1rem;
  padding: 1%;
  box-sizing: border-box;
  border-radius: 15px;
}

.box-arrow {
  transition: transform 0.2s ease;
}

.box-header.collapsed .box-arrow {
  transform: rotate(0deg);
}

.box-header:not(.collapsed) .box-arrow {
  transform: rotate(180deg);
}

.box-collapsed {
  display:none;
}

.standalone-title {
  display:flex;
  align-items:center;
  gap:10px;
}

.standalone-header td {
  vertical-align:middle;
}

.standalone-title svg {
  flex-shrink:0;
  display:inline-block !important;
}

.standalone-header div {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.box-summary {
  font-size: 1.1rem;
}



/* ===============================
   DESKTOP
=================================*/

@media (min-width: 992px) {


.remove-box {
    margin-left: 20px;
}


}
