html,
body {
  height: 100%;
}

body {
  background: #f8f9fa;
  color: #111111;
  display: flex;
  flex-direction: column;
}

main,
.page-main {
  flex: 1 0 auto;
}

.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-logo {
  height: 68px;
  width: auto;
}

.hero-section {
  position: relative;
  min-height: calc(50vh - 44px);
  background: url('./../js/hero-bg.png') center center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.min-vh-50 {
  min-height: 50vh;
}

.hero-kicker,
.section-kicker {
  letter-spacing: 0.14em;
}

.contact-kicker {
  color: #7a8a96;
}

.ribbon-section {
  background: #f1f1f1;
  color: #111111;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  min-height: 72px;
}

.ribbon-page {
  min-height: 68px;
  display: flex;
  align-items: center;
}

.ribbon-page-title {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #8f79bd 0%, #6a5796 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-section {
  background: #f8f9fa;
}

.service-card {
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.06);
}

.contact-section {
  background: #ffffff;
}

.site-footer {
  background: #111111;
  color: #ffffff;
  margin-top: auto;
}

.contact-info-card {
  border-color: #e5e7eb !important;
}

.about-photo-placeholder {
  min-height: 320px;
}

.contact-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  color: #5d84a8;
  font-size: 1.5rem;
}

.services-list-compact p {
  line-height: 1.25;
}

.required-asterisk {
  color: #dc3545;
}

.form-section-block {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e3e3e3;
}

.form-section-block:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-section-block .h4 {
  font-weight: 700;
}

.form-check {
  margin-bottom: 0.5rem;
}

.form-text {
  margin-top: 0.5rem;
}

.shop-filter-sidebar {
  border-color: #e3e7ec !important;
  position: sticky;
  top: 150px;
  margin-top: 0;
}

.shop-filter-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.shop-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shop-filter-action {
  color: #6a5796;
  text-decoration: none;
  font-weight: 600;
}

.shop-filter-action:hover,
.shop-filter-action:focus {
  color: #57477e;
  text-decoration: underline;
}

.shop-filter-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.shop-filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #495057;
  font-weight: 500;
}

.shop-filter-checkbox input {
  margin: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #6a5796;
}

.shop-filter-group {
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid #e3e7ec;
}

.shop-filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.shop-search-wrap {
  width: 360px;
  margin-left: auto;
}

.shop-card {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.06);
}

.shop-card-media {
  aspect-ratio: 4 / 3;
  background: #eef1f4;
  overflow: hidden;
}

.shop-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.shop-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card-title-link {
  color: inherit;
  text-decoration: none;
}

.shop-card-title-link:hover {
  text-decoration: underline;
}

.shop-pricing-link {
  color: inherit;
  text-decoration: none;
}

.shop-pricing-link:hover {
  text-decoration: underline;
}


.shop-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f2f5, #e3e7ec);
  color: #7a8a96;
  font-weight: 600;
}

.shop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #f3eef9;
  border: 1px solid #ddd3ee;
  color: #5e4a86;
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 600;
}

.shop-status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-status-available {
  background: #e7f6ec;
  color: #2f7a43;
}

.shop-status-pending {
  background: #fff4de;
  color: #9a6700;
}

.shop-status-sold {
  background: #fdeaea;
  color: #b42318;
}

.shop-pricing {
  font-size: 0.95rem;
  color: #111111;
}

.shop-product-image-wrap {
  aspect-ratio: 4 / 3;
}

.shop-product-image-button {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
}

.shop-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-product-thumb {
  aspect-ratio: 1 / 1;
  max-width: 96px;
}

.shop-product-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-gallery-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

#productGalleryCarousel .carousel-control-prev,
#productGalleryCarousel .carousel-control-next {
  width: 56px;
  opacity: 1;
}

#productGalleryCarousel .carousel-control-prev-icon,
#productGalleryCarousel .carousel-control-next-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: rgba(17, 17, 17, 0.78);
  background-size: 55% 55%;
}

.shop-back-link {
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
}

.shop-back-link:hover {
  text-decoration: underline;
}

.shop-product-callout {
  border-color: #e3e7ec !important;
}

.shop-inquiry-product {
  border-color: #e3e7ec !important;
}

.shop-inquiry-product-thumb-wrap {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.shop-inquiry-product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-inquiry-product-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8a96;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-body {
  background: #f7f8fa;
}

.admin-header,
.admin-footer {
  background: #fffdf9;
}

.admin-brand-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #8f79bd 0%, #6a5796 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.admin-main {
  min-height: calc(100vh - 160px);
}

.admin-card {
  border-color: #e3e7ec !important;
  box-shadow: 0 16px 40px rgba(19, 27, 34, 0.05);
}

.admin-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8a96;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.admin-stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #111827;
}

.admin-list-item {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  background: #fcfcfb;
}

.admin-list-link:hover {
  background: #f8f9fb;
}

.admin-user-toggle {
  text-decoration: none;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
}

.admin-user-toggle:focus,
.admin-user-toggle:hover {
  text-decoration: none;
  color: #111827 !important;
  border-color: #d6dbe1;
  background: #f9fafb;
}

.admin-user-caret {
  font-size: 0.8rem;
  line-height: 1;
}

.admin-user-menu {
  border-radius: 1rem;
  border-color: #e5e7eb;
  padding: 0.5rem;
  min-width: 220px;
}

.admin-user-menu .dropdown-item {
  border-radius: 0.7rem;
  padding: 0.6rem 0.85rem;
}

.admin-photo-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.admin-featured-image {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.admin-photo-row {
  padding: 0.75rem 0;
  border-top: 1px solid #eceff3;
}

.admin-delete-preview {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.admin-additional-image-thumb {
  width: 140px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.admin-drag-handle {
  cursor: grab !important;
  line-height: 1;
  padding: 0.45rem 0.55rem;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-drag-handle:hover,
.admin-drag-handle:focus {
  cursor: grab !important;
}

.admin-drag-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.admin-drag-lines span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #8c949d;
}

.admin-additional-image-row {
  cursor: grab;
  position: relative;
}

.admin-additional-image-row.is-dragging {
  opacity: 0.55;
}


.admin-additional-image-row.drop-before::before,
.admin-additional-image-row.drop-after::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #6a5796;
  border-radius: 999px;
}

.admin-additional-image-row.drop-before::before {
  top: -10px;
}

.admin-additional-image-row.drop-after::after {
  bottom: -10px;
}

.admin-photo-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-inventory-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.admin-inventory-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #7a8a96;
  background: #f4f6f8;
}

.admin-draft-label {
  color: #b42318;
}

.btn-outline-secondary,
.admin-main .btn,
.admin-header .btn,
.admin-footer .btn,
.admin-main .btn-dark,
.admin-main .btn-outline-dark,
.admin-main .btn-danger,
.admin-header .btn-dark,
.admin-header .btn-outline-dark,
.admin-footer .btn-dark,
.admin-footer .btn-outline-dark {
  --bs-btn-color: #495057;
  --bs-btn-bg: #f8f9fb;
  --bs-btn-border-color: #ced4da;
  --bs-btn-hover-color: #495057;
  --bs-btn-hover-bg: #e9ecef;
  --bs-btn-hover-border-color: #c4cbd3;
  --bs-btn-active-color: #495057;
  --bs-btn-active-bg: #dee2e6;
  --bs-btn-active-border-color: #c4cbd3;
}

.admin-main .btn-outline-danger {
  --bs-btn-color: #b42318;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: #f1b7b2;
  --bs-btn-hover-color: #b42318;
  --bs-btn-hover-bg: #fdeaea;
  --bs-btn-hover-border-color: #e9a39c;
  --bs-btn-active-color: #b42318;
  --bs-btn-active-bg: #fbd5d2;
  --bs-btn-active-border-color: #e9a39c;
}

.admin-help-copy strong {
  font-weight: 700;
}

.shop-empty-state {
  border-color: #e3e7ec !important;
}
