/**
 * 5DLS Movie Memorabilia Vault — dark theme
 * Body: Inter | Headings: Playfair Display
 */

:root {
  --gallery-bg: #0a0a0a;
  --gallery-text: #e0e0e0;
  --gallery-accent: #d4af37;
  --gallery-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --gallery-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html {
  background-color: var(--gallery-bg);
}

body {
  font-family: var(--gallery-font-body);
  background-color: var(--gallery-bg);
  color: var(--gallery-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--gallery-font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}

a {
  color: var(--gallery-text);
}

a:hover {
  color: var(--gallery-accent);
}

/* Vault category menu */
#menu.navbar.gallery-category-menu {
  background-color: #1a1a1a !important;
  border-bottom: 1px solid var(--gallery-accent);
  box-shadow: none;
}

#menu .vault-pillar-nav .nav-link {
  font-family: var(--gallery-font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

#menu .nav-link,
#menu .dropdown-item {
  color: var(--gallery-text);
}

#menu .nav-link:hover,
#menu .dropdown-item:hover {
  color: var(--gallery-accent);
  background-color: rgba(212, 175, 55, 0.08);
}

#menu .navbar-toggler {
  color: var(--gallery-accent);
  border-color: rgba(212, 175, 55, 0.5);
}

/* Header — logo | centered cart | search */
.vault-site-header .header-cart-anchor {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.vault-site-header .header-search-slot {
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 768px) {
  .vault-site-header .header-search-slot {
    max-width: none;
    width: auto;
  }
}

/* Mini cart — anchor button + dropdown */
#cart .vault-mini-cart {
  width: auto;
  max-width: 100%;
}

#cart .vault-cart-trigger {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-left: 1.35rem !important;
  padding-right: 1.35rem !important;
  min-height: 3rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

#cart .vault-cart-dropdown {
  width: 350px;
  min-width: 350px;
  max-width: min(350px, calc(100vw - 2rem));
  border: 1px solid var(--gallery-accent);
  background-color: #1a1a1a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

#cart .vault-cart-dropdown .table {
  color: var(--gallery-text);
}

#cart .vault-cart-dropdown .dropdown-item,
#cart .vault-cart-dropdown a {
  color: var(--gallery-text);
}

/* Search — compact trigger; panel matches cart width (~350px) */
.search-minimal--compact .search-minimal-toggle {
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
}

.search-minimal.is-open .search-minimal-toggle {
  display: none !important;
}

.search-minimal-panel {
  margin-top: 0.5rem;
  padding: 0.75rem;
  width: 100%;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
  background-color: #1a1a1a !important;
  border: 1px solid #d4af37 !important;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  outline: none;
}

@media (min-width: 768px) {
  .vault-site-header .search-minimal-panel {
    margin-right: 0;
    margin-left: auto;
  }
}

.search-minimal--compact .vault-search-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Search outer wrapper — no frame (gold border lives on .search-minimal-panel only) */
.search-minimal {
  width: 100%;
  border: none;
  box-shadow: none;
  outline: none;
}

.search-minimal > .d-flex {
  border: none;
  box-shadow: none;
  outline: none;
}

.search-minimal-toggle {
  color: var(--gallery-accent);
  background: transparent;
  border: none;
  padding: 0.35rem 0.5rem;
  line-height: 1;
  box-shadow: none !important;
}

.search-minimal-toggle:hover,
.search-minimal-toggle:focus,
.search-minimal-toggle:focus-visible,
.search-minimal-toggle:active {
  color: #e8c85a;
  background: rgba(212, 175, 55, 0.08);
  outline: none;
  box-shadow: none !important;
}

/* Panel: single gold box; inputs use inner styling only — no Bootstrap focus ring */
.search-minimal-panel .input-group {
  box-shadow: none;
  border-radius: 0.25rem;
}

.search-minimal-panel .input-group:focus-within {
  box-shadow: none;
}

.search-minimal-panel .form-control {
  background-color: #141414;
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gallery-text);
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  min-height: 2.75rem;
  box-shadow: none;
}

.search-minimal-panel .form-control:focus {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: none;
  outline: none;
  color: var(--gallery-text);
  background-color: #141414;
}

.search-minimal-panel .search-minimal-submit:focus,
.search-minimal-panel .search-minimal-submit:focus-visible,
.search-minimal-panel .search-minimal-submit:active {
  outline: none;
  box-shadow: none !important;
}

.search-minimal-panel .form-control::placeholder {
  color: rgba(224, 224, 224, 0.45);
}

.search-minimal-submit {
  background-color: var(--gallery-accent);
  color: var(--gallery-bg);
  border: 1px solid var(--gallery-accent);
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  min-height: 2.75rem;
}

.search-minimal-submit:hover {
  background-color: #e8c85a;
  border-color: #e8c85a;
  color: var(--gallery-bg);
}

/* Homepage — product thumbnails: glass case + gold frame */
#common-home .product-thumb {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 1rem 1rem 1.25rem;
  height: 100%;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 0 48px rgba(212, 175, 55, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#common-home .product-thumb .image {
  margin-bottom: 0.75rem;
}

#common-home .product-thumb h4 {
  font-family: var(--gallery-font-heading);
}

#common-home .product-thumb h4 a {
  color: #d4af37;
}

#common-home .product-thumb h4 a:hover {
  color: #e8c85a;
}

/* Featured — column alignment + equal title band */
.gallery-featured-display .product-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.gallery-featured-display .product-thumb .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  position: relative;
}

.gallery-featured-display .product-thumb .description {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1 1 auto;
}

.gallery-featured-display .product-thumb .image {
  margin-bottom: 0.75rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.gallery-featured-display .product-thumb .image a {
  display: inline-block;
}

.gallery-featured-display .product-thumb h4 {
  min-height: 3.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.gallery-featured-display .product-thumb h4 a {
  display: block;
  line-height: 1.3;
}

.gallery-featured-display .product-thumb .price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
  width: 100%;
}

.gallery-featured-display .product-thumb .rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

/* Featured — override core .product-thumb .button (absolute / 33% width) so actions stay in the case */
.gallery-featured-display .product-thumb .description {
  margin-bottom: 0;
  padding-bottom: 0.25rem;
}

.gallery-featured-display .product-thumb form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.5rem;
}

/* Row stays in-flow; buttons must NOT use flex-grow or they stay ~33% width (same as core theme) */
#common-home .gallery-featured-display .product-thumb form .button {
  display: flex !important;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Fixed small icon buttons — explicit px beats core .product-thumb .button button { width: 33.33% } */
#common-home .gallery-featured-display .product-thumb .button button {
  flex: 0 0 auto !important;
  width: 2.125rem !important;
  min-width: 2.125rem !important;
  max-width: 2.125rem !important;
  height: 2.125rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  font-size: 0.7rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-top: none !important;
}

#common-home .gallery-featured-display .product-thumb .button button + button {
  border-left: 1px solid rgba(212, 175, 55, 0.25);
}

/* Add to cart — solid gold, black label (all home product thumbs; featured uses compact sizing above) */
#common-home .product-thumb .button button:first-child {
  background-color: #d4af37 !important;
  color: #0a0a0a !important;
  border: 1px solid #d4af37 !important;
}

#common-home .product-thumb .button button:first-child:hover {
  background-color: #e8c85a !important;
  border-color: #e8c85a !important;
  color: #0a0a0a !important;
}

/* Wishlist + compare — compact neutral chips */
#common-home .gallery-featured-display .product-thumb .button button:nth-child(2),
#common-home .gallery-featured-display .product-thumb .button button:nth-child(3) {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

#common-home .gallery-featured-display .product-thumb .button button:nth-child(2):hover,
#common-home .gallery-featured-display .product-thumb .button button:nth-child(3):hover {
  background-color: #333 !important;
  color: var(--gallery-accent) !important;
}

/* Featured module heading */
.gallery-featured-display > h3 {
  font-family: var(--gallery-font-heading);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
