/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4ECDC4;        /* Turquesa da logo */
  --secondary: #ED1C24;      /* Vermelho da logo */
  --dark: #2C3E50;
  --light: #F7F7F7;
  --white: #FFFFFF;
  --gray: #95A5A6;
  --success: #27AE60;
  --warning: #F39C12;
  --error: #E74C3C;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==================== TOP BAR ==================== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-link {
  color: var(--white);
  transition: color 0.3s;
}

.top-bar-link:hover {
  color: var(--primary);
}

.top-bar-separator {
  opacity: 0.5;
}

/* ==================== HEADER ==================== */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.logo i {
  font-size: 32px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cart-btn {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s;
}

.cart-btn:hover {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--secondary);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, var(--primary), #45B7AA);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 60px 0;
}

.page-title {
  font-size: 36px;
  margin-bottom: 32px;
  color: var(--dark);
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--dark);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #45B7AA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.btn-secondary {
  background: var(--gray);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--secondary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.product-info {
  padding: 16px;
}

.product-name {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.price-old {
  font-size: 16px;
  color: var(--gray);
  text-decoration: line-through;
}

/* ==================== CATEGORIES ==================== */
.categories-filter {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
}

.category-card:hover, .category-card.active {
  border-color: var(--primary);
  background: rgba(78, 205, 196, 0.1);
}

.category-card i {
  font-size: 20px;
  color: var(--primary);
}

/* ==================== FORMS ==================== */
.form {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section-title {
  font-size: 18px;
  margin: 24px 0 16px 0;
  color: var(--dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input:read-only {
  background: var(--light);
  cursor: not-allowed;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-help {
  display: block;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 16px;
}

.link {
  color: var(--primary);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

/* ==================== CART & CHECKOUT ==================== */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty i {
  font-size: 64px;
  color: var(--gray);
  margin-bottom: 16px;
}

.cart-empty h3 {
  margin-bottom: 8px;
  color: var(--dark);
}

.empty-message {
  text-align: center;
  padding: 40px;
  color: var(--gray);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: var(--primary);
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-col p {
  margin-bottom: 8px;
  color: rgba(255,255,255,0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--success);
}

.notification.error {
  border-left: 4px solid var(--error);
}

.notification.warning {
  border-left: 4px solid var(--warning);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 32px;
  }
}
