.shopping-cart-wrapper {
  display: flex;
  gap: 10px;
  border-radius: 10px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: var(--section-margin);
}

.cart-products-section {
  width: 100%;
  margin-right: 20px;
}

.cart-heading {
  font-size: var(--h2-font-size-l);
  text-transform: uppercase;
  font-weight: var(--font-light-weight);
  color: white;
  letter-spacing: -1.4px;
  font-family: var(--font-family);
  border-bottom: 1px solid #e2e8f0;
}

.cart-content-title {
  border-bottom: 1px solid #e2e8f0;
  text-align: start;
  padding: 10px;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: var(--font-medium-weight);
  background: linear-gradient(135deg, var(--secondary-color) 0%, #15803d 100%);
}

.cart-product-card {
  background-color: white;
  padding: 20px;
  width: 100%;
  height: fit-content;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-product-card:hover {
  background: linear-gradient(
    135deg,
    rgba(21, 128, 61, 0.02) 0%,
    transparent 100%
  );
}

.product-upper-section {
  display: flex;
  text-align: center;
  align-items: center;
  gap: 10px;
}

.product-upper-section > a {
  max-width: 220px;
  display: inline-block;
  height: 100%;
  transition: transform 0.3s ease;
}

.product-upper-section > a:hover {
  transform: scale(1.05);
}

.cart-product-image {
  width: 100%;
  max-width: 150px;
  mix-blend-mode: multiply;
  filter: brightness(1.04);
  border-radius: 8px;
}

.product-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  text-align: start;
  color: #7f7e7e;
  font-weight: var(--font-light-weight);
  gap: 20px;
}

.product-title-link {
  font-size: var(--p-font-size-xl);
  font-weight: var(--font-bold-weight);
  color: black;
  font-family: var(--font-family);
  text-align: start;
  width: fit-content;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.6;
}

.product-title-link:hover {
  color: #15803d;
  text-decoration: underline;
}

.product-prices-wrapper {
  display: block;
  text-align: start;
  min-width: fit-content;
}

.price-label {
  font-size: var(--p-font-size-l);
  color: black;
  font-weight: var(--font-light-weight);
  font-family: var(--font-family);
  padding-top: 10px;
}

.price-text-label {
  font-weight: var(--font-light-weight);
}

.price-amount {
  padding: 0px 5px;
  font-weight: var(--font-bold-weight);
  color: var(--secondary-color);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.unit-prices-section,
.total-prices-section {
  margin-bottom: 10px;
}

.unit-prices-section form select {
  box-shadow: var(--shadow-md);
  font-size: var;
  font-size: 15px;
  height: 40px;
  padding: 4px;
  font-family: var(--font-family);
  font-weight: var(--font-bold-weight);
  cursor: pointer;
  border-radius: 5px;
  margin-bottom: 10px;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    #15803c8f 100%
  );
}

.product-actions-section {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

.quantity-number-input {
  width: 80px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: var(--p-font-size-xl);

  font-family: var(--font-family);
  color: black;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 8px;
}

.quantity-number-input:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

.quantity-number-input:hover {
  border-color: #15803d;
}

.update-cart-btn {
  color: black;
  position: relative;
  background: transparent;
  border: none;
  font-size: var(--p-font-size-xl);
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.update-cart-btn:hover {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: white;
  transform: scale(1.05);
}

.tooltip-wrapper {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 45px;
  right: -55px;
  width: 130px;
  padding: 8px;
  transition: all 0.3s ease;
  color: #fff;
  text-align: center;
  font-size: var(--p-font-size-s);
  font-family: var(--font-family);
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
  z-index: 10;
}

.update-cart-btn:hover .tooltip-wrapper {
  visibility: visible;
  opacity: 1;
  transform: translateY(-5px);
}

.tooltip-arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.arrow-icon {
  color: #15803d;
  font-size: var(--h1-font-size-l);
}

.delete-product {
  color: black;
  font-size: var(--p-font-size-xl);
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  display: none;
}

.delete-product:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  transform: scale(1.05);
}

.hide-popup {
  display: none;
}

.delete-modal-background {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background-color: white;
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.delete-confirmation-modal {
  width: 350px;
  height: fit-content;
  padding: 30px;
  font-size: var(--p-font-size-l);
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  color: black;
  font-family: var(--font-family);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(to bottom, #ffffff, #f8faf9);
}

.delete-confirmation-modal p {
  font-size: var(--p-font-size-l);
  line-height: 1.6;
  margin-bottom: 20px;
}

.confirmation-buttons {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  justify-content: space-evenly;
  gap: 15px;
}
.cena-item span,
.popust-item span {
  font-weight: var(--font-bold-weight);
  color: var(--secondary-color);
}

.confirmation-buttons > a,
.confirmation-buttons > p {
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  padding: 12px 24px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: var(--font-light-weight);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.confirmation-buttons > a:hover,
.confirmation-buttons > p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.3);
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.cancel-btn {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2) !important;
}

.cancel-btn:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  box-shadow: 0 8px 20px rgba(100, 116, 139, 0.3) !important;
}

.cart-summary-section {
  background-color: white;
  padding: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 100%;
  max-width: 555px;
  height: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.order-details-section {
  display: flex;
  flex-direction: column;
  text-align: start;
  gap: 8px;
  padding: 20px 0px;
  border-top: 2px solid #e2e8f0;
}

.order-details-section:last-child {
  padding-bottom: 0px;
}

.order-details-primary {
  border-top: none;
  padding-top: 0;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--p-font-size-l);
  font-weight: var(--font-light-weight);
}

.free-shipping-notice {
  padding: 20px 0;
  line-height: 1.6;
  color: #64748b;
}

.payment-title {
  font-size: var(--p-font-size-xl);
  font-weight: var(--font-bold-weight);
  color: white;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #15803d 100%);
  padding: 15px 20px;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.payment-title:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.3);
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
}

.payment-title .price-amount {
  color: white;
  font-weight: var(--font-bold-weight);
}

.add-to-cart-container {
  padding: 0px 0px 10px 0;
  width: 100%;
}

.input-group {
  display: flex;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  height: 40px;
  width: fit-content;
  background-color: #ffffff;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.input-group:hover {
  box-shadow: rgba(21, 128, 61, 0.15) 0px 6px 20px;
  border-color: rgba(21, 128, 61, 0.2);
}

.product-inputs {
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 2px;
  overflow: hidden;
}

.add-remove-quantity {
  border: none;
  text-align: center;
  background-color: #f8faf9;
  color: #333;
  font-size: var(--p-font-size-xl);
  font-weight: var(--font-bold-weight);
  width: 100%;
  height: 100%;
  cursor: pointer;
  width: 35px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.add-remove-quantity:hover {
  color: white;
  transform: scale(1.05);
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
}

.add-remove-quantity:active {
  transform: scale(0.95);
}

.added-quantity {
  width: 50px;
  text-align: center;
  border: none;
  height: 100%;
  font-weight: var(--font-bold-weight);
  font-size: 16px;
  background: white;
  transition: all 0.2s ease;
  color: #333;
}

.added-quantity:hover {
  border: 2px solid #15803d;
  background: rgba(21, 128, 61, 0.05);
}

.added-quantity:focus {
  outline: none;
  border: 2px solid #15803d;
  background: rgba(21, 128, 61, 0.08);
}

.dodaj-u-korpu {
  width: 35%;
  border: none;
  color: var(--link-color) !important;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #15803d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--add-to-cart-icon-font-size-xl);
  cursor: pointer;
  padding: 10px;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dodaj-u-korpu::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.dodaj-u-korpu:hover {
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
  transform: scale(1.02);
}

.dodaj-u-korpu:active {
  transform: scale(0.98);
}

.dodaj-u-korpu > i {
  transition: transform 0.3s ease;
  z-index: 1;
}

.dodaj-u-korpu:hover > i {
  transform: translateY(-3px) rotate(-10deg);
}
.remove-from-cart-container {
  padding: 10px;
  padding-bottom: 0px;
}

.remove-from-cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  height: 35px;
  width: 35px;
  border: none;
  color: white !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
}

.remove-from-cart-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.remove-from-cart-link:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: scale(1.02);
}

.remove-from-cart-link:active {
  transform: scale(0.98);
}

.remove-from-cart-link > i {
  transition: transform 0.3s ease;
  z-index: 1;
  font-size: var(--p-font-size-xl);
}

.remove-from-cart-link:hover > i {
  transform: translateY(-3px) rotate(-10deg);
}

.remove-from-cart-link span,
.dodaj-u-korpu span {
  position: absolute;
  bottom: 50px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 10px;
  padding: 4px 15px;
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  will-change: opacity, transform;
  z-index: 3;
  color: white;
  width: max-content;
  font-size: var(--p-font-size-l);
}

.remove-from-cart-link:hover span {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.headline-remove-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.dodaj-u-korpu:hover span {
  opacity: 1;
  transform: translateY(-3px);
  background: linear-gradient(
    135deg,
    var(--button-hover-color) 0%,
    var(--secondary-color) 100%
  );
}
.effect-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.effect-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}
.remove-from-cart-link:hover .effect-wrapper::before {
  width: 300px;
  height: 300px;
}

@media screen and (max-width: 1024px) {
  .cart-summary-section {
    padding: 20px;
    max-width: 340px;
  }

  .cart-product-card {
    padding: 10px;
  }

  .update-cart-btn,
  .delete-product {
    font-size: var(--p-font-size-l);
  }

  .summary-row,
  .price-label,
  .free-shipping-notice {
    font-size: var(--p-font-size-m);
  }

  .free-shipping-notice,
  .order-details-section {
    padding: 15px 0px;
  }

  .payment-title {
    font-size: var(--p-font-size-l);
    padding: 12px 16px;
  }

  .product-info-wrapper {
    margin-bottom: 20px;
  }

  .product-title-link {
    width: 100%;
  }

  .product-prices-wrapper {
    margin: 15px 0;
    width: 100%;
  }

  .add-to-cart-container {
    padding: 0;
  }
}

@media screen and (max-width: 900px) {
  .shopping-cart-wrapper {
    display: block;
    padding: 0px;
  }

  .cart-heading {
    font-size: var(--h1-font-size-l);
  }

  .cart-summary-section {
    max-width: 100%;
    margin-top: 20px;
  }

  .cart-products-section {
    margin-right: 0;
  }
}

@media screen and (max-width: 605px) {
  .product-upper-section {
    display: flex;
    text-align: start;
    align-items: start;
  }

  .headline-remove-container {
    align-items: start;
  }

  .cart-product-card {
    padding: 15px;
  }

  .product-info-wrapper {
    width: 100%;
  }

  .product-upper-section > a {
    max-width: 100px;

    display: block;
  }
  .product-title-link {
    font-size: var(--p-font-size-l);
  }

  .unit-prices-section h3 {
    font-size: var(--p-font-size-l);
  }

  .cart-product-image {
    max-width: 100%;
  }

  .product-actions-section {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .quantity-number-input {
    width: 70px;
  }
  .remove-from-cart-link span {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .cart-heading {
    font-size: var(--h1-font-size-m);
  }

  .product-title-link {
    font-size: var(--p-font-size-m);
  }

  .product-upper-section {
    gap: 5px;
  }

  .price-label {
    font-size: var(--p-font-size-s);
  }
  .product-info-wrapper {
    margin-bottom: 0px;
  }

  .cart-summary-section {
    padding: 15px;
  }

  .delete-confirmation-modal {
    width: 300px;
    padding: 20px;
  }

  .confirmation-buttons > a,
  .confirmation-buttons > p {
    padding: 10px 20px;
    font-size: var(--p-font-size-m);
  }

  .add-remove-quantity {
    width: 65px;
    font-size: var(--p-font-size-l);
  }

  .added-quantity {
    width: 40px;
    font-size: 14px;
  }

  .dodaj-u-korpu,
  .remove-from-cart-link > i {
    font-size: var(--p-font-size-l);
  }
  .unit-prices-section form select {
    font-size: 14px;
  }
}
