/* ================================
   BASE
================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #111;
  background: #fff;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ================================
   LISTING PAGE — HEADER
================================ */
.listing-header {
  padding: 44px 24px 36px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 30;
}

.store-name {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-link {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #bbb;
  text-transform: uppercase;
}

/* ================================
   LISTING PAGE — FILTERS
================================ */
.filters {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 116px;
  background: #fff;
  z-index: 20;
}

.filter-group {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-right: 1px solid #e0e0e0;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.filter-group:last-child {
  border-right: none;
}

.filter-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-chevron {
  font-size: 10px;
  color: #888;
  transition: transform 0.18s ease;
  line-height: 1;
}

.filter-group.open .filter-chevron {
  transform: rotate(180deg);
}

.filter-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  z-index: 100;
}

.filter-group.open .filter-dropdown {
  display: block;
}

.filter-option {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.1s;
}

.filter-option:hover {
  background: #f5f5f5;
}

.filter-option.selected {
  font-weight: 600;
}

/* ================================
   LISTING PAGE — PRODUCT GRID
================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 16px 20px;
  cursor: pointer;
  transition: background 0.12s;
}

.product-card:nth-child(4n) {
  border-right: none;
}

.product-card:hover {
  background: #fafafa;
}

.product-card.hidden {
  display: none;
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.product-img-wrap svg {
  width: 88%;
  height: 88%;
  display: block;
}

.product-collection {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 3px;
}

.product-name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 5px;
  line-height: 1.45;
}

.product-price {
  font-size: 11px;
  font-weight: 400;
  color: #111;
}

/* ================================
   DETAIL PAGE — LAYOUT
================================ */
.detail-page {
  background: #e6ded4;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Detail Nav */
.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 48px;
  flex-shrink: 0;
  border-bottom: 1px solid #d2c8bc;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.nav-link:hover {
  opacity: 1;
}

.nav-brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-icon {
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.15s;
  display: block;
}

.nav-icon:hover {
  opacity: 1;
}

/* Detail Main */
.detail-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.detail-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 62% 38%;
  min-height: 0;
}

.detail-left {
  border-right: 1px solid #d2c8bc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 48px;
}

.detail-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
}

.brand-info {
  position: absolute;
  top: 26px;
  left: 28px;
}

.brand-badge {
  background: #f0e030;
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.brand-subtitle {
  font-size: 10px;
  color: #666;
  letter-spacing: 0.04em;
  padding-left: 2px;
}

.price-display {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.main-product-image,
.secondary-product-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-product-image svg {
  width: 78%;
  max-height: 80%;
  display: block;
}

.secondary-product-image svg {
  width: 62%;
  max-height: 72%;
  display: block;
}

/* Size Section */
.size-section {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  border-top: 1px solid #d2c8bc;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.size-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 78px;
}

.size-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.size-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #bbb;
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s;
  color: #111;
}

.size-btn:hover {
  border-color: #444;
  background: rgba(0,0,0,0.05);
}

.size-btn.selected {
  background: #111;
  color: #fff;
  border-color: #111;
}

.size-guide-btn {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #555;
  background: none;
  border: none;
  border-bottom: 1px solid #888;
  padding: 0 0 1px 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

/* Detail Bottom Bar */
.detail-bottom-bar {
  display: flex;
  align-items: stretch;
  height: 56px;
  border-top: 1px solid #d2c8bc;
  flex-shrink: 0;
}

.add-to-bag-btn {
  height: 100%;
  padding: 0 36px;
  background: #e53c2f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  flex-shrink: 0;
}

.add-to-bag-btn:hover {
  background: #cc2e22;
}

.wishlist-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  border: none;
  border-left: 1px solid #d2c8bc;
  border-right: 1px solid #d2c8bc;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #111;
  flex-shrink: 0;
}

.detail-nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 0 24px;
}

.detail-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbb;
  transition: background 0.15s;
}

.dot.active {
  background: #444;
}

.nav-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid #bbb;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #555;
  font-family: inherit;
  line-height: 1;
  transition: all 0.14s;
  padding: 0;
}

.nav-arrow:hover {
  border-color: #333;
  color: #111;
}
