/* MODA TEMPLATE - ELEGANT, MINIMAL, MONOCHROME */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --bg-color: #ffffff;
  --bg-color-alt: #f8f8f8;
  --text-color: #111111;
  --text-muted: #666666;
  
  --primary: #111111;
  --primary-hover: #333333;
  --primary-text: #ffffff;
  
  --border-color: #e5e5e5;
  --radius: 0px; /* Sharp corners for fashion */
  
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

[data-theme='dark'] {
  --bg-color: #111111;
  --bg-color-alt: #1a1a1a;
  --text-color: #ffffff;
  --text-muted: #aaaaaa;
  
  --primary: #ffffff;
  --primary-hover: #e0e0e0;
  --primary-text: #111111;
  
  --border-color: #333333;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--text-color);
  transition: all 0.2s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--primary-text); }
.btn-ghost:hover { opacity: 0.7; }
.btn-icon { padding: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center; height: 80px;
}
.brand { display: flex; align-items: center; gap: 15px; }
.brand-logo { max-height: 40px; width: auto; }
.nav { display: none; gap: 2rem; }
.nav a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.nav a:hover { opacity: 0.6; }
@media (min-width: 768px) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 15px; }
.cart-badge {
  background: var(--primary); color: var(--primary-text);
  font-size: 0.7rem; padding: 2px 6px; margin-left: 5px; border-radius: 50px;
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* Hero */
.hero {
  padding: 8rem 0;
  background-color: var(--bg-color-alt);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }

/* Toolbar & Filters */
.toolbar { padding: 2rem 0; border-bottom: 1px solid var(--border-color); }
.toolbar-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; min-width: 200px; }
.input, .select {
  width: 100%; padding: 0.8rem;
  background: transparent; border: 1px solid var(--border-color); color: var(--text-color);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.2s;
}
.input:focus, .select:focus { outline: none; border-color: var(--primary); }

/* Categories */
#categorias { padding: 4rem 0 2rem; }
.text-center { text-align: center; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 2rem; }
.chip {
  padding: 0.5rem 1.2rem; background: transparent; border: 1px solid var(--border-color);
  color: var(--text-color); cursor: pointer; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.chip.is-active, .chip:hover { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }

/* Products Grid */
#produtos { padding: 2rem 0 6rem; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem;
}
.card {
  display: flex; flex-direction: column; cursor: pointer; group;
}
.card-thumb-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--bg-color-alt); }
.card-thumb {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.card:hover .card-thumb { transform: scale(1.03); }
.card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: var(--primary-text);
  font-size: 0.7rem; padding: 4px 8px; text-transform: uppercase; letter-spacing: 0.1em;
  z-index: 2;
}
.card-body { padding: 1.5rem 0; text-align: center; }
.card-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5rem; }
.card-body h3 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 0.5rem; font-weight: 500; }
.card-price { font-size: 1.1rem; font-family: var(--font-heading); }
.card-var { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.card-actions { display: none; gap: 10px; margin-top: 1rem; justify-content: center; }
.card:hover .card-actions { display: flex; }
.card-actions .btn { padding: 0.5rem 1rem; font-size: 0.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-color); padding: 4rem 0; }
.footer-brand { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 1rem; }
.footer-quote { color: var(--text-muted); margin-bottom: 2rem; }
.footer-links { display: flex; gap: 1rem; }

/* Modals & Cart */
.cart-backdrop, .modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-backdrop.is-open, .modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%;
  background: var(--bg-color); z-index: 1001;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; border-left: 1px solid var(--border-color);
}
.cart-panel.is-open { transform: translateX(0); }

.cart-head { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { font-size: 1.2rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-foot { padding: 1.5rem; border-top: 1px solid var(--border-color); background: var(--bg-color-alt); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 1.5rem; font-family: var(--font-heading); }
.cart-actions { display: flex; flex-direction: column; gap: 10px; }
.cart-actions .btn { width: 100%; }

.cart-item { display: flex; gap: 15px; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.cart-item-img { width: 80px; height: 106px; object-fit: cover; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; }
.cart-item-title { font-weight: 500; font-size: 0.9rem; }
.cart-item-var { font-size: 0.8rem; color: var(--text-muted); margin: 4px 0; }
.cart-item-price { font-family: var(--font-heading); margin-top: auto; }
.qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--border-color); width: fit-content; margin-top: 10px; }
.qty-ctrl button { background: transparent; border: none; padding: 5px 10px; cursor: pointer; color: var(--text-color); }
.qty-ctrl span { padding: 0 10px; font-size: 0.9rem; }

.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--bg-color); width: 90%; max-width: 500px;
  max-height: 90vh; overflow-y: auto; padding: 2rem; z-index: 1001;
  border: 1px solid var(--border-color);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: transparent; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text-color);
}

.var-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.var-opt {
  padding: 0.5rem 1rem; background: transparent; border: 1px solid var(--border-color); color: var(--text-color);
  cursor: pointer; font-family: var(--font-body); font-size: 0.85rem;
}
.var-opt.is-selected { border-color: var(--primary); background: var(--primary); color: var(--primary-text); }
.var-opt.is-disabled { opacity: 0.5; cursor: not-allowed; text-decoration: line-through; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
