/** Shopify CDN: Minification failed

Line 1826:0 Expected "}" to go with "{"

**/
/* === GLOBAL MOBILE WIDTH LOCK === */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}

img, video, iframe, audio, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === TABLE SAFETY (MOBILE) === */
@media (max-width: 768px) {
  table {
    width: 100%;
    table-layout: fixed;
  }

  th, td {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  tr {
    height: auto;
  }
}

/* ===== MOBILE: PRODUCT TABLE ROW MAX 3 LINES ===== */
@media (max-width: 768px) {

  /* Allow rows to grow, but not infinitely */
  .product-table tr {
    height: auto !important;
    max-height: none !important;
  }

  /* TITLE COLUMN — MAX 3 LINES */
  .product-table td:nth-child(1) .title a,
  .product-table td:nth-child(1) a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
    white-space: normal;
    line-height: 1.3;
  }

  /* ALL OTHER VISIBLE CELLS — SINGLE LINE */
  .product-table td:not(:nth-child(1)) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Action buttons stay vertically centered */
  .product-table td:last-child {
    vertical-align: middle;
  }
}

@media (max-width: 768px) {
  .product-table th,
  .product-table td {
    height: auto !important;
    max-height: none !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;

    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .product-table th:last-child,
  .product-table td:last-child {
    width: 96px !important;
    min-width: 96px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .product-table th:nth-child(2),
  .product-table td:nth-child(2),
  .product-table th:nth-child(3),
  .product-table td:nth-child(3) {
    font-size: 0.85em;
    opacity: 0.85;
  }
}

@media (max-width: 768px) {
  .product-table td:nth-child(4) {
    white-space: normal !important;
    text-align: center;
    word-break: break-word;
  }
}

.sort-header {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.sort-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sort-link.active {
  border-bottom-color: currentColor;
}

#audio-player {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: #fff;
  border: 1px solid #000;
  padding: 0.5rem;
  z-index: 9999;
}

body {
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  * {
    max-width: 100vw;
  }
}

/* GLOBAL MOBILE ROW SAFETY */
* {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 768px) {
  .row,
  .grid,
  .grid__item,
  .table-row,
  tr,
  td,
  th {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  th,
  td {
    width: auto;
    max-width: 100%;
    padding: 0.5rem;
    vertical-align: top;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  tr {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .action-column,
  .actions,
  .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .action-column button,
  .action-column a {
    flex: 1 1 auto;
    min-width: 44px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .grid,
  .collection-grid,
  .archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.sorting-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.sorting-header a {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .sorting-header a {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .sorting-header a {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .product-table,
  table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .product-table th,
  .product-table td {
    padding: 0.5rem;
    vertical-align: top;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 768px) {
  .product-table th:nth-child(2),
  .product-table td:nth-child(2),
  .product-table th:nth-child(3),
  .product-table td:nth-child(3) {
    font-size: 0.9rem;
    opacity: 0.85;
  }
}

@media (max-width: 768px) {
  .product-table td:nth-child(4) {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .product-table th.action,
  .product-table td.action,
  .product-table th:last-child,
  .product-table td:last-child {
    width: 88px;
    min-width: 88px;
    text-align: center;
  }

  .product-table td:last-child button,
  .product-table td:last-child a {
    width: 100%;
    min-height: 44px;
  }
}
@media (max-width: 768px) {
  .product-table td.quantity,
  .product-table td.age,
  .product-table td.count {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .product-table * {
    text-overflow: unset !important;
  }
}

@media (max-width: 768px) {
  .product-table * {
    text-overflow: unset !important;
  }
}

html {
  font-size: 17px;
}

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-border: #e0e0e0;
  --color-hover: #f5f5f5;
  --font-family: system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --spacing-xs: 0.235rem;
  --spacing-sm: 0.353rem;
  --spacing-md: 0.941rem;
  --spacing-lg: 1.412rem;
  --site-header-height: 5.882rem;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, select {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* Announcement Bar */
.announcement-bar {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: center;
}

.announcement-container {
  max-width: 100%;
}

.announcement-text {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 400;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 100;
}

.header-container {
  max-width: 100%;
  padding: var(--spacing-md);
}

.header-main-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}


.site-title {
  font-size: 1.412rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-title a:hover {
  text-decoration: none;
}

.search-form {
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-base);
}

.search-input:focus {
  outline: 2px solid var(--color-text);
  outline-offset: 0;
}

.main-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  margin-left: auto; 
}

.menu-link {
  white-space: nowrap;
  padding: var(--spacing-sm);
}

.menu-link:hover {
  text-decoration: underline;
}

.login-link,
.account-link,
.admin-link {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.login-link:hover,
.account-link:hover,
.admin-link:hover {
  background: var(--color-hover);
  text-decoration: none;
}

.create-menu {
  position: relative;
}

.create-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  white-space: nowrap;
}

.create-btn:hover {
  background: var(--color-hover);
}

.create-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--spacing-xs);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.create-dropdown.show {
  display: block;
}

.create-dropdown a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.create-dropdown a:last-child {
  border-bottom: none;
}

.create-dropdown a:hover {
  background: var(--color-hover);
  text-decoration: none;
}

.cart-link {
  display: flex;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  align-items: center;
}

.cart-link:hover {
  background: var(--color-hover);
  text-decoration: none;
}

.cart-icon {
  font-size: 0.941rem;
}

.filter-bar {
  display: flex;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.filter-group {
  display: flex;
  gap: var(--spacing-xs);
}

.filter-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.filter-btn:hover {
  background: var(--color-hover);
}

.filter-btn.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* ===== PRODUCT TABLE LAYOUT ===== */

.product-table-container {
  width: 100%;
}

/* THIS is the only sticky element */
.product-table-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid #000;
}

/* Both tables must match exactly */
.product-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

/* Row sizing */
.product-table th,
.product-table td {
  height: 30px;
  max-height: 30px;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Left-align all header text */
.product-table-header th {
  text-align: left;
}

.sort-indicator {
  display: inline-block;
  width: 0.706rem;
  font-size: 0.588rem;
  color: #999;
}

.product-table th.sort-asc .sort-indicator::before {
  content: '▲';
  color: var(--color-text);
}

.product-table th.sort-desc .sort-indicator::before {
  content: '▼';
  color: var(--color-text);
}

.product-table td {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table tbody tr:hover {
  background: var(--color-hover);
}

.product-table tbody tr.hidden {
  display: none;
}

.product-table th:nth-child(1),
.product-table td:nth-child(1) { width: 20%; }

.product-table th:nth-child(2),
.product-table td:nth-child(2) { width: 20%; }

.product-table th:nth-child(3),
.product-table td:nth-child(3) { width: 10%; }

.product-table th:nth-child(4),
.product-table td:nth-child(4) { width: 12%; }

.product-table th:nth-child(5),
.product-table td:nth-child(5) { width: 8%; }

.product-table th:nth-child(6),
.product-table td:nth-child(6) { width: 10%; }

.product-table th:nth-child(7),
.product-table td:nth-child(7) { width: 8%; }

.product-table th:nth-child(8),
.product-table td:nth-child(8) { width: 12%; }

.product-table .title a {
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table .description {
  font-size: 0.706rem;
  color: #666;
}

.product-table .variant select {
  padding: 0.118rem var(--spacing-xs);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 0.706rem;
  width: 100%;
  max-width: 100%;
  min-height: 2.588rem;
}

.product-table .tags {
  font-size: 0.647rem;
  color: #666;
}

.action-buttons {
  display: flex;
  gap: var(--spacing-xs);
}

.buy-btn,
.add-btn {
  padding: 0.353rem var(--spacing-sm);
  border: 1px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 500;
  font-size: 0.706rem;
  min-height: 2.588rem;
  line-height: 1;
}

.buy-btn {
  min-width: 2.941rem;
  padding-left: 0.588rem;
  padding-right: 0.588rem;
}

.add-btn {
  min-width: 2.588rem;
}

.buy-btn:hover:not(:disabled),
.add-btn:hover:not(:disabled) {
  background: var(--color-bg);
  color: var(--color-text);
}

.buy-btn:disabled,
.add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.buy-btn.in-cart {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-text);
}

.buy-btn.in-cart:hover:not(:disabled) {
  background: var(--color-text);
  color: var(--color-bg);
}

.play-btn {
  padding: 0.353rem var(--spacing-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.706rem;
  min-height: 2.588rem;
  line-height: 1;
  min-width: 2.588rem;
}

.play-btn:hover {
  background: var(--color-hover);
}

.play-btn.playing {
  background: var(--color-text);
  color: var(--color-bg);
}

.view-btn {
  padding: 0.588rem var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.706rem;
  min-height: 2.588rem;
  line-height: 1;
  display: inline-block;
  min-width: 2.941rem;
  text-align: center;
  text-decoration: none;
}

.view-btn:hover {
  background: var(--color-hover);
  text-decoration: none;
}

.global-audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 2px solid var(--color-text);
  padding: var(--spacing-md);
  display: none;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.global-audio-player.visible {
  display: block;
}

.audio-player-info {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  font-size: 0.765rem;
}

#audio-track-title {
  font-weight: 600;
}

#audio-track-artist {
  color: #666;
}

.product-detail {
  max-width: 800px;
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-lg);
}

.product-detail-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.product-title {
  font-size: 1.824rem;
  font-weight: 600;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.product-metadata {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.meta-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.meta-label {
  font-weight: 600;
}

.meta-value {
  font-weight: 400;
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
}

.variant-selector {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.variant-selector label {
  font-weight: 600;
}

.variant-selector select {
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-base);
  max-width: 300px;
}

.product-price {
  font-size: 1.529rem;
  font-weight: 600;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.buy-now-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  border: 1px solid var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 500;
}

.buy-now-btn:hover:not(:disabled) {
  background: var(--color-bg);
  color: var(--color-text);
}

.buy-now-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.buy-now-btn.large {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 0.941rem;
  min-height: 2.941rem;
  width: 100%;
  max-width: 17.647rem;
}

.buy-now-btn.disabled {
  background: var(--color-border);
  color: var(--color-text);
  border-color: var(--color-border);
  cursor: pointer;
  opacity: 1;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.buy-now-btn.disabled:hover {
  background: var(--color-hover);
  text-decoration: none;
}

.add-to-cart-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 500;
}

.add-to-cart-btn:hover:not(:disabled) {
  background: var(--color-hover);
}

.add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-to-cart-btn.large {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.824rem;
  min-height: 2.941rem;
  width: 100%;
  max-width: 17.647rem;
}

.helper-text {
  font-size: 0.765rem;
  color: #666;
  margin-top: var(--spacing-xs);
  font-style: italic;
}

.share-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 500;
  margin-top: var(--spacing-md);
  cursor: pointer;
}

.share-btn:hover {
  background: var(--color-hover);
}

.back-link {
  display: inline-block;
  padding: var(--spacing-sm) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-md);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-lg);
}

.footer-container {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-copy {
  color: #666;
  font-size: 0.706rem;
}

@media (max-width: 768px) {
  .header-main-row {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .search-form {
    order: 4;
    flex-basis: 100%;
    max-width: none;
  }

  .product-table {
    font-size: 0.647rem;
  }

  .product-table th,
  .product-table td {
    padding: 2px var(--spacing-xs);
  }

  .product-table .description,
  .product-table .collection {
    display: none;
  }
}

/* Product Page Clean Archival Layout */
.product-page-clean {
  background: var(--color-bg);
  min-height: 100dvh;
  width: 100%;
}

.product-detail-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.product-detail {
  width: 100%;
  background: var(--color-bg);
}

.product-detail-container {
  padding: 0;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.photo-icon {
  background: none;
  border: 1px solid var(--color-border);
  padding: var(--spacing-xs);
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.photo-icon:hover {
  background: var(--color-hover);
}

.product-title {
  font-size: 1.824rem;
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

.product-metadata {
  margin-bottom: var(--spacing-lg);
}

.meta-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-base);
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: 500;
  color: #666;
}

.meta-value {
  color: var(--color-text);
}

.product-form {
  margin-bottom: var(--spacing-lg);
}

.variant-selector {
  margin-bottom: var(--spacing-md);
}

.variant-selector label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-base);
}

.variant-selector select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--font-size-base);
}

.product-price {
  margin-bottom: var(--spacing-md);
}

.product-price .price {
  font-size: 1.529rem;
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.buy-now-btn,
.add-to-cart-btn {
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--font-size-base);
  font-weight: 500;
  transition: background 0.15s ease;
}

.buy-now-btn.primary {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.buy-now-btn:hover:not(:disabled) {
  background: #333;
}

.add-to-cart-btn:hover:not(:disabled) {
  background: var(--color-hover);
}

.buy-now-btn:disabled,
.add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.helper-text {
  font-size: 0.706rem;
  color: #666;
  margin-top: var(--spacing-xs);
}

.product-audio-preview {
  margin-bottom: var(--spacing-md);
}

.play-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--font-size-base);
  transition: background 0.15s ease;
}

.play-btn:hover {
  background: var(--color-hover);
}

.share-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-md);
  transition: background 0.15s ease;
}

.share-btn:hover {
  background: var(--color-hover);
}

.back-link {
  display: inline-block;
  font-size: var(--font-size-base);
  text-decoration: underline;
  margin-bottom: var(--spacing-lg);
}

/* Product Image Gallery */
.product-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.gallery-thumbnail {
  aspect-ratio: 9 / 16;
  background: none;
  border: 1px solid var(--color-border);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.gallery-thumbnail:hover {
  opacity: 0.7;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90dvh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.882rem;
  min-width: 2.588rem;
  min-height: 2.588rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 10000;
}

.lightbox-close:hover {
  background: var(--color-hover);
}

/* Promotional Popup */
.promo-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.promo-popup.active {
  display: flex;
}

.promo-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.promo-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90dvh;
  z-index: 10001;
  cursor: pointer;
}

.promo-popup-content img {
  max-width: 100%;
  max-height: 90dvh;
  object-fit: contain;
  display: block;
  border: 1px solid var(--color-border);
}

.promo-popup-close {
  position: absolute;
  top: -2.941rem;
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.882rem;
  min-width: 2.588rem;
  min-height: 2.588rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 10002;
}

.promo-popup-close:hover {
  background: var(--color-hover);
}

@media (max-width: 768px) {
  .product-detail-wrapper {
    padding: var(--spacing-md);
  }

  .product-title {
    font-size: 1.529rem;
  }

  .promo-popup-content {
    max-width: 95%;
  }

  .promo-popup-close {
    top: -2.647rem;
    font-size: 1.647rem;
    min-width: 2.353rem;
    min-height: 2.353rem;
  }

  .meta-row {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }

  .product-actions {
    flex-direction: column;
  }

  .product-image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* ===== BLOG ARTICLE IMMERSIVE LAYOUT ===== */

.template-article .article-page-immersive {
  position: relative;
  min-height: 100dvh;
  width: 100%;
}

.template-article .article-background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.template-article .article-background-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.65;
}

.template-article .article-detail-overlay {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.template-article .article-detail {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.template-article .article-detail-container {
  padding: var(--spacing-lg);
}

.template-article .article-title {
  font-size: 1.824rem;
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

.template-article .article-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.824rem;
  color: #666;
}

.template-article .article-date {
  font-weight: 500;
}

.template-article .article-tags {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.template-article .article-tag {
  padding: 0.118rem var(--spacing-sm);
  background: var(--color-hover);
  border: 1px solid var(--color-border);
  font-size: 0.706rem;
  border-radius: 0.118rem;
}

.template-article .article-content {
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.template-article .article-content p {
  margin-bottom: var(--spacing-md);
}

.template-article .article-content h2 {
  font-size: 1.412rem;
  font-weight: 500;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.template-article .article-content h3 {
  font-size: 1.176rem;
  font-weight: 500;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.template-article .article-content ul,
.template-article .article-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.template-article .article-content li {
  margin-bottom: var(--spacing-xs);
}

.template-article .article-content img {
  max-width: 100%;
  height: auto;
  margin: var(--spacing-md) 0;
  border: 1px solid var(--color-border);
}

.template-article .article-content a {
  text-decoration: underline;
}

.template-article .article-content a:hover {
  color: #666;
}

.template-article .share-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-md);
  transition: background 0.15s ease;
}

.template-article .share-btn:hover {
  background: var(--color-hover);
}

.template-article .back-link {
  display: inline-block;
  font-size: var(--font-size-base);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .template-article .article-detail-overlay {
    padding: var(--spacing-md);
  }

  .template-article .article-detail-container {
    padding: var(--spacing-md);
  }

  .template-article .article-title {
    font-size: 1.529rem;
  }

  .template-article .article-content h2 {
    font-size: 1.176rem;
  }

  .template-article .article-content h3 {
    font-size: 1.059rem;
  }
}

/* ===== ARCHIVE GALLERY PAGE ===== */

.archive-gallery-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.archive-header h1 {
  font-size: 1.824rem;
  font-weight: 500;
  margin: 0;
}

.archive-sort {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.archive-sort label {
  font-size: var(--font-size-base);
  font-weight: 500;
}

.sort-select {
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--font-size-base);
  min-height: 2.588rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.archive-item {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity 0.15s ease;
}

.archive-item:hover {
  opacity: 0.7;
  text-decoration: none;
}

.archive-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--color-border);
  display: block;
}

.archive-item-title {
  margin-top: var(--spacing-xs);
  font-size: 0.824rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .archive-gallery-page {
    padding: var(--spacing-md);
  }

  .archive-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .archive-header h1 {
    font-size: 1.529rem;
  }

  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(7.059rem, 1fr));
    gap: var(--spacing-sm);
  }

  .archive-item-title {
    font-size: 0.706rem;
  }

  @media (max-width: 768px) {
  .product-table th,
  .product-table td {
    height: auto !important;
    max-height: none !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;

    line-height: 1.3;
  }


  /* ===== MOBILE: PRODUCT TABLE — CORE COLUMNS ONLY ===== */
@media (max-width: 768px) {

  /* Hide non-essential columns */
  .product-table th:nth-child(2),
  .product-table td:nth-child(2),
  .product-table th:nth-child(3),
  .product-table td:nth-child(3),
  .product-table th:nth-child(5),
  .product-table td:nth-child(5),
  .product-table th:nth-child(7),
  .product-table td:nth-child(7) {
    display: none !important;
  }

  /* Ensure remaining columns flex cleanly */
  .product-table {
    table-layout: fixed;
    width: 100%;
  }

  /* Title column — primary */
  .product-table th:nth-child(1),
  .product-table td:nth-child(1) {
    width: auto !important;
  }

  /* Variant column */
  .product-table th:nth-child(4),
  .product-table td:nth-child(4) {
    width: 28% !important;
  }

  /* Price column */
  .product-table th:nth-child(6),
  .product-table td:nth-child(6) {
    width: 18% !important;
    text-align: right;
  }

  /* Action column (Play / Buy) */
  .product-table th:nth-child(8),
  .product-table td:nth-child(8) {
    width: 88px !important;
    min-width: 88px;
    text-align: center;
  }
@media (max-width: 768px) {
  .product-table .title a {
    white-space: normal;
    line-height: 1.3;
  }
/* =======================================================
   MOBILE PRODUCT TABLE — FINAL OVERRIDE (AUTHORITATIVE)
   ======================================================= */
@media (max-width: 768px) {

  /* --- COLUMN VISIBILITY (MOBILE ONLY) --- */
  .product-table th:nth-child(2),
  .product-table td:nth-child(2),
  .product-table th:nth-child(3),
  .product-table td:nth-child(3),
  .product-table th:nth-child(5),
  .product-table td:nth-child(5),
  .product-table th:nth-child(7),
  .product-table td:nth-child(7) {
    display: none !important;
  }

  /* --- TABLE LOCK --- */
  .product-table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  /* --- RESET GLOBAL DAMAGE (ONLY HERE) --- */
  .product-table td,
  .product-table th {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    height: auto !important;
    max-height: none !important;
    vertical-align: middle;
  }

  /* --- TITLE COLUMN: MAX 3 LINES --- */
  .product-table td:nth-child(1) a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;

    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3;
  }

  /* --- VARIANT COLUMN --- */
  .product-table th:nth-child(4),
  .product-table td:nth-child(4) {
    width: 28% !important;
    text-align: center;
    white-space: nowrap !important;
  }

  /* --- PRICE COLUMN --- */
  .product-table th:nth-child(6),
  .product-table td:nth-child(6) {
    width: 18% !important;
    text-align: right;
    white-space: nowrap !important;
  }

  /* --- ACTION COLUMN (PLAY + BUY) --- */
  .product-table th:nth-child(8),
  .product-table td:nth-child(8) {
    width: 88px !important;
    min-width: 88px;
    text-align: center;
  }

  /* --- BUTTON STACK SAFETY --- */
  .product-table td:nth-child(8) .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}


}


