/* ===================================
   SARAH LOHMANN MODA FASHION
   Design Estilo Maria Filó - Minimalista & Luxo
   =================================== */

/* ===== VARIÁVEIS ===== */
:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --text-dark: #1A1A1A;
  --text-light: #666666;
  --border-color: #EBEBEB;
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
  --transition: all 0.35s ease-out;
}

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

html, body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.logo-wrapper {
  flex-shrink: 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  text-decoration: none;
}

/* ===== NAVEGAÇÃO PRINCIPAL ===== */
.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.nav-link {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-dark);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== HEADER ICONS ===== */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--text-light);
}

.icon {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

/* Menu Mobile Estilos */
.nav-menu.mobile-open {
  display: flex !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.nav-menu.mobile-open .nav-link {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.nav-menu.mobile-open .nav-link:last-child {
  border-bottom: none;
}

/* Menu Toggle Ativo */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== SEARCH BAR ===== */
.search-bar {
  background-color: var(--white);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.search-bar.hidden {
  display: none;
}

.search-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--light-gray);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--text-dark);
  background-color: var(--white);
}

.search-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0;
  transition: var(--transition);
}

.search-close:hover {
  color: var(--text-light);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  background-color: var(--white);
}

/* ===== LISTING SECTION ===== */
.listing-section {
  width: 100%;
}

.listing-section.hidden,
.detail-section.hidden {
  display: none !important;
}

/* ===== CATEGORY BANNER ===== */
.category-banner {
  background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.category-banner-content {
  max-width: 1400px;
  margin: 0 auto;
}

.category-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

/* ===== FILTER BAR ===== */
.filter-bar {
  background-color: var(--white);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-link:hover {
  color: var(--text-dark);
}

.breadcrumb-separator {
  color: var(--border-color);
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.sort-select {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.sort-select:hover,
.sort-select:focus {
  outline: none;
  border-color: var(--text-dark);
}

.product-count {
  font-size: 0.9rem;
  color: var(--text-light);
  white-space: nowrap;
}

.product-count span {
  font-weight: 600;
  color: var(--text-dark);
}

/* ===== PRODUCTS CONTAINER ===== */
.products-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  animation: fadeIn 0.5s ease;
}

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

/* ===== PRODUCT CARD ===== */
.product-card {
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 130%;
  overflow: hidden;
  background-color: var(--light-gray);
  margin-bottom: 1rem;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.product-image.secondary {
  opacity: 0;
}

.product-card:hover .product-image.primary {
  opacity: 0;
}

.product-card:hover .product-image.secondary {
  opacity: 1;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.sizes-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-btn-card {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  font-size: 0.8rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.size-btn-card:hover {
  border-color: var(--text-dark);
}

/* ===== DETAIL SECTION ===== */
.detail-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.btn-back {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  margin-bottom: 2rem;
  transition: var(--transition);
  padding: 0;
}

.btn-back:hover {
  color: var(--text-dark);
}

.product-detail-container {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 3rem;
  margin-top: 2rem;
}

/* ===== DETAIL GALLERY ===== */
.detail-gallery {
  display: flex;
  flex-direction: column;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery-item {
  width: 100%;
  padding-bottom: 130%;
  position: relative;
  background-color: var(--light-gray);
  overflow: hidden;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== DETAIL INFO ===== */
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-product-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.detail-price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-dark);
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.colors-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.color-circle:hover {
  transform: scale(1.1);
}

.color-circle.active {
  border: 2px solid var(--text-dark);
  border-color: var(--text-dark);
}

.sizes-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.size-btn {
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.size-btn:hover {
  border-color: var(--text-dark);
}

.size-btn.active {
  background-color: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
}

.btn-buy {
  width: 100%;
  padding: 1.2rem;
  background-color: var(--text-dark);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-buy:hover {
  background-color: #333333;
}

/* ===== ACCORDION ===== */
.accordion {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  width: 100%;
  padding: 1.2rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-header::after {
  transform: rotate(-180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.accordion-item.open .accordion-content {
  max-height: 500px;
  padding-bottom: 1rem;
}

.accordion-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .category-title {
    font-size: 2.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .filter-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-menu {
    gap: 2rem;
  }

  .header-container {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    gap: 1rem;
  }

  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .category-banner {
    padding: 2.5rem 1.5rem;
  }

  .category-title {
    font-size: 2rem;
  }

  .products-container {
    padding: 2rem 1.5rem;
  }

  .detail-section {
    padding: 1.5rem;
  }

  .product-detail-container {
    gap: 1.5rem;
  }

  .detail-product-name {
    font-size: 1.5rem;
  }

  .detail-gallery .gallery-grid {
    gap: 0.8rem;
  }

  .filter-container {
    padding: 1rem 0;
  }

  .header {
    padding: 1rem 1.5rem;
  }

  .search-bar {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-banner {
    padding: 2rem 1rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .products-container {
    padding: 1.5rem 1rem;
  }

  .product-image-wrapper {
    padding-bottom: 120%;
  }

  .detail-section {
    padding: 1rem;
  }

  .detail-product-name {
    font-size: 1.3rem;
  }

  .detail-price {
    font-size: 1.2rem;
  }

  .btn-buy {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .header-icons {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .filter-container {
    flex-direction: column;
    width: 100%;
  }

  .sort-wrapper {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }
}
