:root{ /*VARIÁVEIS GLOBAIS*/
  --font: "Montserrat",sans-serif;
  --fontP: "Poppins";
  --cor1: #8a8a8a;
  --cor2: #fff;
  --cor3: #000000;
  --cor_text : #000000d2;
  --cor5:#A1A09A;
  --left: 800px;
  --bottom: 800px;
  --cor7: #5bb299!important;
  --topHeaderCel: 5px;
}

html { /*CONFIGURAÇÕES GLOBAIS*/
  scroll-behavior: smooth;
  overflow-x: hidden;
  font: var(--font);
}

@font-face { 
  font-family: 'Mignon';
  src: url('../fonts/Mignon-Regular.otf') format('opentype'), url('../fonts/Mignon-Regular.ttf') format('truetype');
}

.logo h1 {
  font-family: 'Mignon';
}

header {
  position: static !important;
}

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

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

.icon-cart{
  display: none;
}

.checkout-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.checkout-container h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 50px;
  text-align: center;
}

.checkout-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.checkout-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
  margin-bottom: 40px;
}

.form-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.form-row.full {
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
  font-size: 14px;
}

.form-group input,
.form-group select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #5bb299;
  box-shadow: 0 0 5px rgba(91,178,153,0.3);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.payment-method {
  position: relative;
}

.payment-method input[type="radio"] {
  display: none;
}

.payment-method label {
  display: block;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9f9f9;
  margin-bottom: 0;
}

.payment-method input[type="radio"]:checked + label {
  border-color: #5bb299;
  background: #e8f5f0;
}

/* Dropdown de Entrega */
.delivery-selector {
  position: relative;
  width: 100%;
}

.delivery-toggle {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.delivery-toggle:hover {
  border-color: #5bb299;
  background: #e8f5f0;
}

.delivery-toggle.active {
  border-color: #5bb299;
  background: #e8f5f0;
}

.delivery-icon {
  font-size: 20px;
}

.delivery-name {
  font-weight: bold;
  color: #333;
  flex: 1;
}

.delivery-time {
  font-size: 12px;
  color: #999;
  margin-right: 10px;
}

.dropdown-arrow {
  font-size: 12px;
  color: #999;
  transition: transform 0.3s ease;
}

.delivery-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.delivery-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #5bb299;
  border-top: none;
  border-radius: 0 0 4px 4px;
  margin-top: -2px;
  padding: 10px;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.delivery-options .payment-methods {
  gap: 8px;
}

.delivery-options .payment-method label {
  padding: 12px;
  font-size: 13px;
}

.order-summary {
  background: white;
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.order-summary h3 {
  font-size: 18px;
  margin-bottom: 22px;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.item-details {
  flex: 1;
}

.item-name {
  font-weight: bold;
  color: #333;
  font-size: 14px;
  margin-bottom: 4px;
}

.item-qty {
  font-size: 12px;
  color: #999;
}

.item-price {
  font-weight: bold;
  color: var(--cor_text);
  font-size: 14px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
}

.summary-line.total {
  border-top: 2px solid #ddd;
  padding-top: 16px;
  margin-top: 16px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
  color: var(--cor3);
}

.order-summary .btn-checkout {
  margin-top: 0;
}

.order-summary .btn-back-container {
  margin-top: 10px;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  background-color: #5bb299;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 25px;
  transition: background-color 0.3s ease;
}

.btn-checkout:hover {
  background-color: #4a9a7f;
}

.btn-back {
  display: inline-block;
  padding: 13px 30px;
  color: #333;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-back:hover {
  background-color: #bbb;
}

.btn-back-container {
  text-align: center;
  margin-top: 12px;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
}

.empty-cart h2 {
  color: #999;
  margin-bottom: 20px;
}

/* Cálculo de Frete */
.shipping-calc-section {
  background-color: #f0f0f0;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 4px;
  border-left: 4px solid #5bb299;
}

.shipping-calc-section h4 {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.shipping-calc-section p {
  font-size: 12px;
  color: #666;
  margin-bottom: 14px;
  font-style: italic;
}

.shipping-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

/* Seção PIX */
.pix-info {
  background: linear-gradient(135deg, #e8f5f0 0%, #f0faf8 100%);
  border: 2px solid #5bb299;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
}

.pix-info h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.pix-data {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.pix-item {
  background: white;
  padding: 12px;
  border-radius: 4px;
  border-left: 4px solid #5bb299;
}

.pix-item label {
  display: block;
  font-weight: bold;
  color: #555;
  font-size: 13px;
  margin-bottom: 5px;
}

.pix-value {
  font-size: 14px;
  color: #333;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  word-break: break-all;
}

.pix-note {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin: 10px 0 0 0;
  padding: 10px;
  background: rgba(91, 178, 153, 0.1);
  border-radius: 4px;
}

.shipping-input-group input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

.shipping-input-group button {
  padding: 10px 18px;
  background-color: #5bb299;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.shipping-input-group button:hover {
  background-color: #4a9a7f;
}

.shipping-input-group button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.shipping-msg {
  font-size: 12px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.shipping-msg.success {
  background-color: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
}

.shipping-msg.error {
  background-color: #ffebee;
  border: 1px solid #f44336;
  color: #c62828;
}

/* Tablet e telas médias */
@media (max-width: 900px) {
  .checkout-container {
    max-width: 100%;
    margin: 30px auto;
    padding: 15px;
  }

  .checkout-container h2 {
    font-size: 24px;
    margin-bottom: 45px;
    margin-top: 1rem;
  }

  .checkout-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    gap: 15px;
    margin-bottom: 15px;
  }

  .form-group input,
  .form-group select {
    padding: 10px;
    font-size: 13px;
  }

  .order-summary {
    position: static;
    padding: 30px;
    margin-top: 20px;
  }

  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }

  .shipping-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .shipping-input-group button {
    padding: 12px 15px;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 767px) {

  header h1{
    margin-left: 1.5rem;
  }

  .checkout-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 12px;
  }

  .checkout-container h2 {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .checkout-content {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .form-section {
    margin-bottom: 30px;
  }

  .form-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .form-group {
    margin-bottom: 0;
  }

  .form-group label {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .form-group input,
  .form-group select {
    padding: 10px;
    font-size: 13px;
    border: 1px solid #ddd;
  }

  .shipping-calc-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .shipping-calc-section h4 {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .shipping-calc-section p {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .shipping-input-group {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  .shipping-input-group input {
    padding: 10px;
    font-size: 13px;
  }

  .shipping-input-group button {
    padding: 12px;
    font-size: 12px;
    width: 100%;
  }

  .payment-methods {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
  }

  .payment-method label {
    padding: 12px;
    font-size: 12px;
  }

  .order-summary {
    position: static;
    padding: 20px;
    margin-top: 0;
    border-radius: 6px;
  }

  .order-summary h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .order-item {
    padding: 10px 0;
  }

  .item-name {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .item-qty {
    font-size: 11px;
  }

  .item-price {
    font-size: 13px;
  }

  .summary-line {
    padding: 10px 0;
    font-size: 13px;
  }

  .summary-line.total {
    padding-top: 12px;
    margin-top: 12px;
    font-size: 16px;
  }

  .btn-checkout {
    padding: 14px;
    font-size: 15px;
    margin-top: 20px;
  }

  .btn-back {
    padding: 11px 20px;
    font-size: 13px;
  }

  .delivery-toggle {
    padding: 12px;
    font-size: 13px;
    gap: 8px;
  }

  .delivery-icon {
    font-size: 18px;
  }

  .delivery-time {
    font-size: 11px;
  }

  .delivery-options .payment-method label {
    padding: 10px;
    font-size: 12px;
  }
}
