/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3a5f;
  --primary-dark: #152a45;
  --secondary: #8bc34a;
  --secondary-dark: #7cb342;
  --background: #f8fafc;
  --foreground: #1e3a5f;
  --card: #ffffff;
  --card-foreground: #1e3a5f;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

/* Botoes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Header */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

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

.header-top-links {
  display: flex;
  gap: 1.5rem;
}

.header-top-links a {
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.header-top-links a:hover {
  opacity: 1;
}

.header-main {
  padding: 1rem 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.search-bar {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--secondary);
}

.search-bar button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary);
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--primary);
  transition: color 0.2s;
}

.header-actions a:hover {
  color: var(--secondary);
}

.header-actions svg {
  width: 24px;
  height: 24px;
  margin-bottom: 0.25rem;
}

/* Menu de Navegacao */
.nav-menu {
  background-color: var(--muted);
  border-top: 1px solid var(--border);
}

.nav-menu ul {
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
}

.nav-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-menu li a:hover {
  background-color: var(--secondary);
  color: var(--white);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .header-top-links {
    display: none;
  }

  .header-main .container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .search-bar {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
  }

  .nav-menu li a {
    border-bottom: 1px solid var(--border);
  }
}

/* Hero Banner */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: var(--secondary);
  opacity: 0.1;
  transform: rotate(-15deg);
}

.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }
}

/* Secoes */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.section-header a {
  color: var(--secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header a:hover {
  text-decoration: underline;
}

/* Grid de Categorias */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 64px;
  height: 64px;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: var(--secondary);
  color: var(--white);
}

.category-icon svg {
  width: 32px;
  height: 32px;
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.category-card span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Grid de Produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--secondary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-favorite {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.product-favorite:hover {
  background: var(--secondary);
  color: var(--white);
}

.product-favorite.active {
  background: var(--secondary);
  color: var(--white);
}

.product-info {
  padding: 1rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-artist {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.product-artist img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.product-price .current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price .original {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.product-rating svg {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  fill: #fbbf24;
}

/* Grid de Artistas */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.artist-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.artist-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.artist-cover {
  height: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.artist-content {
  padding: 1rem;
  text-align: center;
  margin-top: -50px;
}

.artist-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--card);
  object-fit: cover;
  margin: 0 auto 1rem;
}

.artist-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.artist-specialty {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.artist-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.artist-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.artist-stat {
  text-align: center;
}

.artist-stat strong {
  display: block;
  font-size: 1.125rem;
  color: var(--primary);
}

.artist-stat span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-section .btn {
  background: var(--white);
  color: var(--secondary);
}

.cta-section .btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--secondary);
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  opacity: 0.8;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.footer-column ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-bottom-links a:hover {
  opacity: 1;
}

/* Page Header */
.page-header {
  background: var(--muted);
  padding: 2rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
}

/* Filters Sidebar */
.page-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.filters-sidebar {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  accent-color: var(--secondary);
}

.price-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.price-range input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .page-content {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
  }
}

/* Product Detail Page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-main-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
}

.product-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
  border-color: var(--secondary);
}

.product-details h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.product-details .product-price {
  margin-bottom: 1.5rem;
}

.product-details .product-price .current {
  font-size: 2rem;
}

.product-description {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.product-seller {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.product-seller img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.product-seller-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.product-seller-info span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
}

.quantity-selector input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 1rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-actions .btn {
  flex: 1;
  padding: 1rem;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

/* Artist Profile Page */
.artist-profile-header {
  position: relative;
}

.artist-cover-large {
  height: 250px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.artist-profile-info {
  display: flex;
  gap: 2rem;
  margin-top: -75px;
  padding: 0 2rem;
}

.artist-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--card);
  object-fit: cover;
  flex-shrink: 0;
}

.artist-profile-content {
  padding-top: 80px;
}

.artist-profile-content h1 {
  margin-bottom: 0.5rem;
}

.artist-profile-content .artist-specialty {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.artist-bio {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.artist-profile-stats {
  display: flex;
  gap: 3rem;
}

.artist-profile-stats .stat {
  text-align: center;
}

.artist-profile-stats .stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
}

@media (max-width: 768px) {
  .artist-profile-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .artist-profile-content {
    padding-top: 1rem;
  }

  .artist-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .artist-profile-stats {
    justify-content: center;
  }
}

/* Tabs */
.tabs {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tabs-list {
  display: flex;
  gap: 0;
}

.tab-button {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted-foreground);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-button:hover {
  color: var(--primary);
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.hidden { display: none; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
