@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  font-family: 'Lato', sans-serif;
}
body > header {
  background: linear-gradient(135deg, #fc00e7 0%, #d500c5 100%);
  color: #ffffff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(252, 0, 231, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-section h1 {
  font-size: 32px;
  font-weight: 900;
  margin: 0;
}

.promo-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.timer-section {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.timer-label {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

.timer-display {
  display: flex;
  gap: 10px;
}

.timer-unit {
  text-align: center;
}

.timer-value {
  background: rgba(255, 255, 255, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
  min-width: 50px;
  backdrop-filter: blur(5px);
}

.timer-text {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.9;
}

/* MAIN */
body > main {
  background: #fcfcfc;
  padding: 0 15px 30px;
}

.page-title {
  font-size: 32px;
  padding: 30px 0;
  text-align: center;
  color: #333;
}

.content {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

section {
  flex: 1;
}

aside {
  min-width: 320px;
}

/* TABELA DE PRODUTOS */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

thead tr {
  background: linear-gradient(135deg, #fc00e7 0%, #d500c5 100%);
  color: white;
}

thead th {
  text-align: left;
  padding: 16px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s;
}

tbody tr:hover {
  background: #fff5fc;
}

tbody tr:last-child {
  border-bottom: 0;
}

td {
  padding: 20px 16px;
  vertical-align: middle;
}

.product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product .info .name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.product .info .category {
  color: #999;
  font-size: 13px;
  font-weight: 500;
}

/* PREÇOS */
.price-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.current-price {
  font-size: 22px;
  font-weight: 900;
  color: #fc00e7;
}

/* QUANTIDADE */
.qty {
  background: #f0f0f0;
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  overflow: hidden;
  height: 42px;
  min-width: 120px;
}

.qty button {
  background: transparent;
  border: 0;
  padding: 0 16px;
  font-size: 22px;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
}

.qty button:hover {
  background: #fc00e7;
  color: white;
}

.qty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty span {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

/* ASIDE RESUMO */
aside .box {
  margin-bottom: 20px;
  border: 2px solid #fc00e7;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(252, 0, 231, 0.15);
}

aside .box header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #fc00e7 0%, #d500c5 100%);
  color: white;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

aside .box .info {
  padding: 20px 24px;
}

aside .box .info > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 16px;
  color: #666;
}

aside .box .info > div span:last-child {
  font-weight: 700;
  color: #333;
}

aside .box footer {
  padding: 20px 24px;
  background: #fff0f8;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  color: #fc00e7;
}

aside > button {
  border: 0;
  padding: 20px;
  color: white;
  background: linear-gradient(135deg, #fc00e7 0%, #d500c5 100%);
  width: 100%;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 900;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(252, 0, 231, 0.3);
}

aside > button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 0, 231, 0.4);
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  font-size: 24px;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.toast-success {
  border-left: 4px solid #28a745;
}

.toast-error {
  border-left: 4px solid #dc3545;
}

.toast-warning {
  border-left: 4px solid #ffc107;
}

.toast-info {
  border-left: 4px solid #17a2b8;
}

/* RESPONSIVO MOBILE */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .timer-section {
    width: 100%;
    justify-content: center;
  }

  .page-title {
    font-size: 24px;
    padding: 20px 0;
  }

  .content {
    flex-direction: column;
    gap: 25px;
  }

  aside {
    width: 100%;
    min-width: auto;
  }

  thead {
    display: none;
  }

  tbody, tr, td {
    display: block;
    width: 100%;
  }

  tr {
    background: #fff;
    border: 2px solid #fc00e7;
    border-radius: 16px;
    margin-bottom: 20px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(252, 0, 231, 0.1);
  }

  td {
    padding: 12px 0;
    border: 0;
  }

  .product {
    flex-direction: row;
    gap: 12px;
  }

  .product img {
    width: 80px;
    height: 80px;
  }

  td:nth-child(2)::before { 
    content: "Preço: "; 
    font-weight: 700; 
    color: #666; 
    display: block;
    margin-bottom: 4px;
  }
  
  td:nth-child(3)::before { 
    content: "Quantidade: "; 
    font-weight: 700; 
    color: #666;
    display: block;
    margin-bottom: 8px;
  }
  
  td:nth-child(4)::before { 
    content: "Total: "; 
    font-weight: 700; 
    color: #666;
    display: block;
    margin-bottom: 4px;
  }

  .qty {
    width: 100%;
    justify-content: space-between;
  }

  #toast-container {
    right: 10px;
    left: 10px;
    top: 10px;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}