/* ============================================================
   Mona'Art — Global Styles
   ============================================================ */

:root {
  --gold: #C9A84C;
  --gold-light: #e8d5a3;
  --dark: #1a1a1a;
  --text-muted-custom: #888;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: #333;
  background: #fff;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* ---- Megamenu ---- */
.has-megamenu { position: static; }
.megamenu-trigger { position: relative; }
.megamenu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid #f0ebe0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  z-index: 1050;
}
.has-megamenu:hover .megamenu,
.has-megamenu:focus-within .megamenu { display: block; }
.megamenu-title {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #f0ebe0;
  padding-bottom: 0.5rem;
}
.megamenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.megamenu-list li { margin-bottom: 0.5rem; }
.megamenu-list a {
  color: #444;
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 0.15rem 0;
  transition: color 0.15s, padding-left 0.15s;
}
.megamenu-list a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.megamenu-featured {
  display: block;
  text-decoration: none;
}
.megamenu-featured img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.3s;
}
.megamenu-featured:hover img { transform: scale(1.03); }
.megamenu-featured-title { font-family: var(--font-serif); font-size: 0.95rem; color: var(--dark); }
.megamenu-featured-artist { font-size: 0.78rem; color: #888; letter-spacing: 0.05em; }
.megamenu-featured-price { font-size: 0.88rem; color: var(--dark); font-weight: 500; }

.megamenu-artist-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #333;
  padding: 0.4rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.megamenu-artist-card:hover { background: rgba(201,168,76,0.06); color: var(--gold); }
.megamenu-artist-card img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8d5a3;
  flex-shrink: 0;
}
.megamenu-artist-card span { font-size: 0.88rem; }

/* Mobile : megamenu en accordion */
@media (max-width: 991px) {
  .has-megamenu { position: relative; }
  .megamenu {
    position: static;
    display: block;
    box-shadow: none;
    border-top: none;
    background: #faf6ec;
    padding-left: 1rem;
  }
  .megamenu .container { padding-left: 0; padding-right: 0; }
}

/* ---- Navbar ---- */
.navbar-brand { padding-top: 0.3rem; padding-bottom: 0.3rem; }
.navbar-brand .brand-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.05em;
}
.brand-accent, .text-gold { color: var(--gold); }
.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555 !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }

/* ---- Cart icon ---- */
.cart-link { color: #333; text-decoration: none; }
.cart-link:hover { color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ---- Buttons ---- */
.btn-gold {
  background: var(--gold);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-gold:hover { background: #b8943e; color: #fff; }
.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ---- Hero ---- */
.hero-section {
  min-height: 460px;
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f5f0 0%, #ede9e2 100%);
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.hero-section.hero-with-image .container {
  padding-top: 5rem;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  z-index: 2;
}
.hero-section.hero-with-image {
  aspect-ratio: 1920 / 900;
  min-height: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 1;
}
.hero-with-image .hero-title,
.hero-with-image .hero-text {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-with-image .hero-subtitle {
  color: var(--gold-light);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark);
}
.hero-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  max-width: 480px;
}
.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-with-image .btn-outline-gold {
  border-color: #fff;
  color: #fff;
}
.hero-with-image .btn-outline-gold:hover {
  background: #fff;
  color: var(--dark);
}

/* ---- Section headers ---- */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--dark);
}
.section-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0.8rem auto 0;
}
.section-divider.left { margin-left: 0; }

/* ---- Artwork cards ---- */
.artwork-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.artwork-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.artwork-card .card-img-wrapper {
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 4/5;
}
.artwork-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.artwork-card:hover .card-img-top { transform: scale(1.04); }
.artwork-card .card-body { padding: 1rem 0; }
.artwork-card .artwork-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.artwork-card .artwork-artist { font-size: 0.78rem; color: var(--text-muted-custom); letter-spacing: 0.05em; }
.artwork-card .artwork-price { font-size: 0.9rem; font-weight: 500; color: var(--dark); }
.badge-sold { background: #dc3545; color: #fff; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
.badge-reserved { background: #fd7e14; color: #fff; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Wishlist buttons ---- */
.wishlist-btn {
  background: rgba(255,255,255,0.92);
  border: none;
  color: #888;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
}
.wishlist-btn:hover { color: var(--gold); background: #fff; }
.wishlist-btn.active { color: #e53e3e; }
.wishlist-btn.active:hover { color: #c53030; }

.wishlist-btn-large {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #888;
  transition: all 0.15s;
}
.wishlist-btn-large:hover { color: var(--gold); border-color: var(--gold); }
.wishlist-btn-large.active { color: #e53e3e; border-color: #e53e3e; }

/* ---- Artist cards ---- */
.artist-card { border: none; text-align: center; }
.artist-card .artist-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-light);
  margin: 0 auto 1rem;
  display: block;
}
.artist-card .artist-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--dark);
}

/* ---- Filters sidebar ---- */
.filter-sidebar { position: sticky; top: 80px; }
.filter-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #888; }

/* ---- Artwork detail ---- */
.artwork-main-img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #f9f9f9;
}
.artwork-meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; }
.artwork-meta dd { font-size: 0.9rem; margin-bottom: 0.8rem; }

/* ---- Cart ---- */
.cart-item { border-bottom: 1px solid #f0f0f0; padding: 1.2rem 0; }
.cart-thumb { width: 80px; height: 80px; object-fit: cover; }

/* ---- Footer ---- */
.footer { font-size: 0.85rem; }
.footer-brand { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 300; }
.footer-link { color: rgba(255,255,255,0.5); text-decoration: none; display: block; margin-bottom: 0.3rem; transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }

/* ---- Utilities ---- */
.text-gold { color: var(--gold) !important; }
.bg-cream { background: #f8f5f0; }
.border-gold { border-color: var(--gold) !important; }
