/* NIC'S LIQUOR ATX — V8.9.1 FULL-FRAME PRODUCT PHOTO SHOWCASE */

.product-photo-showcase {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.product-photo-showcase-head {
  display: grid;
  gap: .7rem;
  margin-bottom: 1.25rem;
  max-width: 58rem;
}

.product-photo-showcase-head h3 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  letter-spacing: -.045em;
  line-height: .98;
  margin: .25rem 0 .35rem;
}

.product-photo-showcase-head p:last-child {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 48rem;
}

.product-photo-notice {
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  padding: .2rem 0 .2rem .8rem;
}

.product-photo-tools {
  align-items: end;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(12rem, .5fr);
}

.product-photo-search,
.product-photo-category {
  display: grid;
  gap: .35rem;
}

.product-photo-search > span,
.product-photo-category > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-photo-search-control {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .7rem;
  display: flex;
  min-height: 2.85rem;
}

.product-photo-search-control > i {
  color: var(--gold);
  font-style: normal;
  padding-left: .85rem;
}

.product-photo-search-control input,
.product-photo-category select {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  min-height: 2.85rem;
  outline: 0;
  width: 100%;
}

.product-photo-search-control input { padding: 0 .65rem; }

.product-photo-search-control button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.2rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.product-photo-category select {
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: 0 .75rem;
}

.product-photo-search-control:focus-within,
.product-photo-category select:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(184 121 42 / .18);
}

.product-photo-results {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: .75rem 0 1rem;
  min-height: 2.75rem;
  padding: .35rem 0;
}

.product-photo-results p {
  color: var(--muted);
  font-size: .68rem;
  margin: 0;
}

.product-photo-results button {
  background: transparent;
  border: 0;
  color: var(--red);
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  min-height: 2.75rem;
  padding: .45rem;
}

.product-photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bottle-photo-card {
  background: #050403;
  border: 1px solid rgb(184 121 42 / .3);
  border-radius: .75rem;
  color: #fff;
  min-width: 0;
  overflow: hidden;
}

.bottle-photo-open {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.bottle-photo-open:focus-visible {
  outline: 3px solid #e4b769;
  outline-offset: -4px;
}

.bottle-photo-frame {
  aspect-ratio: 4 / 5;
  background: #050403;
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.bottle-photo-frame picture,
.bottle-photo-frame img {
  display: block;
  height: 100%;
  width: 100%;
}

.bottle-photo-frame img {
  background: #050403;
  object-fit: contain;
}

.bottle-photo-index {
  background: rgb(5 4 3 / .82);
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: 999px;
  color: rgb(255 255 255 / .86);
  font-size: .58rem;
  left: .65rem;
  letter-spacing: .08em;
  padding: .3rem .42rem;
  position: absolute;
  top: .65rem;
}

.bottle-photo-copy {
  border-top: 1px solid rgb(255 255 255 / .12);
  display: grid;
  gap: .35rem;
  min-height: 5.25rem;
  padding: .8rem .9rem .9rem;
}

.bottle-photo-copy small {
  color: #e4b769;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bottle-photo-copy strong {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  line-height: 1.18;
}

.bottle-photo-copy em {
  color: rgb(255 255 255 / .62);
  font-size: .68rem;
  font-style: normal;
}

.product-photo-empty {
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 2rem;
  text-align: center;
}

.product-photo-more {
  display: flex;
  justify-content: center;
  padding-top: 1.25rem;
}

.bottle-photo-modal {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .2s ease;
  visibility: hidden;
  z-index: 1400;
}

.bottle-photo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.bottle-photo-modal-backdrop {
  background: rgb(0 0 0 / .84);
  inset: 0;
  position: absolute;
}

.bottle-photo-dialog {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: .9rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
  left: 50%;
  max-height: calc(100vh - 2rem);
  max-width: 74rem;
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
}

.bottle-photo-modal-close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: #111;
  cursor: pointer;
  display: flex;
  font-size: 1.25rem;
  height: 2.75rem;
  justify-content: center;
  position: absolute;
  right: .75rem;
  top: .75rem;
  width: 2.75rem;
  z-index: 2;
}

.bottle-photo-modal-visual {
  background: #050403;
  display: grid;
  min-height: 38rem;
  place-items: center;
}

.bottle-photo-modal-visual.has-alternate {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bottle-photo-modal-visual figure { margin: 0; width: 100%; }
.bottle-photo-modal-visual picture { display: block; height: min(76vh, 52rem); }

.bottle-photo-modal-visual img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.bottle-photo-modal-visual figcaption {
  color: rgb(255 255 255 / .65);
  font-size: .64rem;
  padding: .5rem;
  text-align: center;
}

.bottle-photo-modal-copy {
  align-content: center;
  display: grid;
  gap: .9rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.bottle-photo-modal-copy h2 {
  font-size: clamp(1.9rem, 4vw, 3.7rem);
  line-height: .98;
  margin: 0;
}

.bottle-photo-modal-copy p { color: var(--muted); line-height: 1.6; margin: 0; }

.bottle-photo-modal-notice {
  border-left: 3px solid var(--gold);
  display: grid;
  font-size: .76rem;
  gap: .25rem;
  padding-left: .75rem;
}

.bottle-photo-modal-actions,
.bottle-photo-modal-nav {
  display: grid;
  gap: .55rem;
}

.bottle-photo-modal-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bottle-photo-modal-nav { grid-template-columns: 1fr auto 1fr; }

.bottle-photo-modal-actions a,
.bottle-photo-modal-actions button,
.bottle-photo-modal-nav button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: .55rem;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: .72rem;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem;
  text-align: center;
  text-decoration: none;
}

.bottle-photo-modal-actions a { background: var(--red); border-color: var(--red); color: #fff; }
.bottle-photo-modal-nav span { align-self: center; color: var(--muted); font-size: .66rem; text-align: center; }

@media (max-width: 900px) {
  .product-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottle-photo-dialog { grid-template-columns: 1fr; }
  .bottle-photo-modal-visual { min-height: 0; }
  .bottle-photo-modal-visual picture { height: min(62vh, 44rem); }
}

@media (max-width: 620px) {
  .product-photo-tools { grid-template-columns: 1fr; }
  .product-photo-grid { grid-template-columns: 1fr; }
  .bottle-photo-copy { min-height: 4.8rem; }
  .bottle-photo-modal-actions { grid-template-columns: 1fr; }
  .bottle-photo-modal-visual.has-alternate { grid-template-columns: 1fr; }
  .bottle-photo-modal-visual picture { height: min(58vh, 36rem); }
  .bottle-photo-dialog { width: calc(100% - 1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .bottle-photo-modal { transition: none; }
}

@media (forced-colors: active) {
  .bottle-photo-card,
  .bottle-photo-dialog { border: 1px solid CanvasText; }
}

@media print {
  .product-photo-tools,
  .product-photo-results button,
  .product-photo-more,
  .bottle-photo-modal { display: none !important; }
  .product-photo-grid { grid-template-columns: repeat(3, 1fr); }
}
