/* ═══════════════════════════════════════════════════
   MODERNEAST Design System — Components
   按鈕、卡片、導航、表格等共用元件
   ═══════════════════════════════════════════════════ */

/* ── Buttons ── */
.btn-outline {
  display: inline-block;
  padding: 15px 48px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .25em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--duration-normal);
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-gold {
  display: inline-block;
  padding: 14px 44px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  letter-spacing: .2em;
  text-decoration: none;
  transition: background var(--duration-fast);
  cursor: pointer;
  border: none;
}
.btn-gold:hover {
  background: var(--accent-light);
  color: #fff;
}

.btn-terra {
  display: inline-block;
  padding: 14px 44px;
  background: var(--terra);
  color: #fff;
  font-size: 13px;
  letter-spacing: .2em;
  text-decoration: none;
  transition: all var(--duration-fast);
  cursor: pointer;
  border: none;
}
.btn-terra:hover {
  background: #b88868;
  color: #fff;
}

.btn-line {
  display: inline-block;
  padding: 14px 44px;
  background: var(--line-green);
  color: #fff;
  font-size: 13px;
  letter-spacing: .15em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: opacity var(--duration-fast);
  cursor: pointer;
  border: none;
}
.btn-line:hover {
  opacity: .9;
  color: #fff;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 12px;
}

/* ── Cards ── */
.card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 32px 24px;
  transition: all var(--duration-normal);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.brand-card {
  border: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
  background: var(--card);
  transition: all var(--duration-normal);
}
.brand-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.brand-card .b-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.brand-card .b-origin {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .2em;
  margin-bottom: 14px;
}
.brand-card .b-desc {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.8;
}

/* ── Gallery Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: var(--duration-normal);
}
.gallery-item:hover::after {
  background: rgba(0,0,0,.25);
}
.gallery-item .g-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-md);
  color: #fff;
  transform: translateY(100%);
  transition: var(--duration-normal);
  z-index: 2;
}
.gallery-item:hover .g-info {
  transform: translateY(0);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 var(--sp-lg);
}

/* ── Navigation — Top (Designer) ── */
.nav-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 245, 241, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--sp-lg);
  display: flex;
  align-items: center;
  height: 64px;
}
.nav-top .nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: .15em;
  color: var(--ink);
  margin-right: auto;
}
.nav-top .nav-links {
  display: flex;
  gap: var(--sp-lg);
}
.nav-top .nav-links a {
  font-size: 13px;
  color: var(--mute);
  letter-spacing: .1em;
  transition: color var(--duration-fast);
}
.nav-top .nav-links a:hover,
.nav-top .nav-links a.active {
  color: var(--accent);
}

/* ── Navigation — Bottom (Master/Mobile) ── */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.nav-bottom a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--mute);
  gap: 2px;
  text-decoration: none;
  position: relative;
}
.nav-bottom a.active {
  color: var(--accent);
}
.nav-bottom .badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--terra);
  color: #fff;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
}
footer .f-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: .4em;
  color: var(--mute);
  margin-bottom: var(--sp-sm);
}
footer .f-info {
  font-size: 11px;
  color: var(--mute);
  line-height: 2;
}
footer a {
  color: var(--accent);
}

/* ── Compare Table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .1em;
  padding: 12px;
  border-bottom: 2px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.compare-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}
.compare-table td:first-child {
  font-weight: 500;
  color: var(--ink);
}

/* ── Floating Action Button (Master — Cart) ── */
.fab-cart {
  position: fixed;
  bottom: 80px;
  right: var(--sp-md);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  cursor: pointer;
  transition: transform var(--duration-fast);
}
.fab-cart:hover {
  transform: scale(1.08);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-top .nav-links { display: none; }
  .hero { min-height: 500px; }
}

@media (min-width: 1025px) {
  .nav-bottom { display: none; }
}
