/* Checkout Page Styles */
.checkout-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 30px;
}

.checkout-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-header .logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.security-badge {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--success-color);
}

.security-badge svg {
  margin-right: 5px;
}

.continue-shopping-btn {
  display: inline-flex;
  align-items: center;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.continue-shopping-btn:hover {
  color: var(--primary-color);
}

.checkout-content {
  padding: 20px 0 60px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}

/* Checkout Form */
.checkout-form {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.form-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
}

.form-title svg {
  margin-right: 10px;
}

.form-section {
  margin-bottom: 30px;
}

/* Delivery Options */
.delivery-options {
  margin-bottom: 20px;
}

.delivery-option {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: border-color 0.3s;
}

.delivery-option:hover {
  border-color: var(--primary-color);
}

.delivery-option.selected {
  border-color: var(--primary-color);
  background-color: rgba(246, 204, 0, 0.05);
}

.delivery-radio {
  margin-right: 10px;
  margin-top: 3px;
}

.delivery-info {
  flex: 1;
}

.delivery-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 5px;
}

.delivery-desc {
  font-size: 13px;
  color: var(--text-light);
}

.delivery-price {
  font-weight: 600;
  color: var(--primary-color);
}

/* Payment Options */
.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-option {
  flex: 1;
  min-width: 100px;
  background-color: var(--gray-100);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-option:hover {
  border-color: var(--primary-color);
}

.payment-option.selected {
  border-color: var(--primary-color);
  background-color: rgba(246, 204, 0, 0.05);
}

.payment-option svg {
  height: 30px;
  margin-bottom: 8px;
}

.payment-option-title {
  font-size: 14px;
  font-weight: 600;
}

.payment-option-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

/* Order Summary */
.order-summary {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 90px;
}

.summary-title {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.product-item {
  display: flex;
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.2s ease;
}

.product-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.product-image-container {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-right: 1px solid #eee;
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-details {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.quantity-wrapper {
  flex-shrink: 0;
}

.quantity {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  width: fit-content;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn:hover {
  background-color: #e5e5e5;
}

.quantity-input {
  width: 40px;
  height: 32px;
  text-align: center;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-wrapper {
  text-align: right;
}

.product-price {
  font-weight: 700;
  color: #333;
  font-size: 16px;
}

.remove-product-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f44336;
  font-size: 12px;
  cursor: pointer;
  padding: 8px 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(244, 67, 54, 0.2);
  min-width: 44px;
  min-height: 44px;
}

.remove-product-btn:hover,
.remove-product-btn:active {
  opacity: 1;
  background-color: rgba(244, 67, 54, 0.1);
  border-radius: 4px;
}

/* Mobilni uređaji - veća touch target area */
@media (max-width: 768px) {
  .remove-product-btn {
    padding: 10px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .remove-product-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Upsell Products */
.upsell-section {
  margin-top: 25px;
  margin-bottom: 25px;
}

.upsell-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.upsell-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

.upsell-product {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.upsell-product:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.upsell-product.selected {
  border-color: #4CAF50;
}

.upsell-product img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

.upsell-product-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 5px;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.upsell-product-price {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 10px;
}

.upsell-add {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f6cc00;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.upsell-product.selected .upsell-add {
  background-color: #4CAF50;
  color: #fff;
}

/* Order Summary Totals */
.summary-totals {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.total-line {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-weight: 700;
  color: #333;
  font-size: 18px;
}

/* Money back guarantee banner */
.money-back-banner {
  background: linear-gradient(145deg, #e8f7ee 0%, #d1f0dd 100%);
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0 25px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.15);
  position: relative;
}

.guarantee-content {
  flex: 1;
}

.guarantee-title {
  font-weight: 700;
  font-size: 18px;
  color: #155724;
  margin-bottom: 5px;
}

.guarantee-desc {
  color: #2c6b42;
  font-size: 14px;
}

/* Checkout button */
.checkout-btn {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Trust elements */
.trust-elements {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 25px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.trust-item svg {
  color: var(--primary-color);
}