/* ONLINE PRICE — CATALOG LAYOUT V1 */

/* Desktop table */
@media (min-width: 701px) {
  #store .tablewrap table {
    table-layout: fixed;
  }

  #store #catalog td {
    vertical-align: middle;
  }

  #store #catalog td:nth-child(1) {
    width: 16%;
  }

  #store #catalog td:nth-child(2) {
    width: 34%;
  }

  #store #catalog td:nth-child(3) {
    width: 12%;
  }

  #store #catalog td:nth-child(4) {
    width: 9%;
  }

  #store #catalog td:nth-child(5) {
    width: 11%;
  }

  #store #catalog td:nth-child(6) {
    width: 18%;
  }

  #store #catalog .catalog-product-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
  }

  #store #catalog .catalog-description-cell {
    overflow: hidden;
  }

  #store #catalog .catalog-description-text,
  #store #catalog .catalog-description-short {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  #store #catalog .catalog-description summary {
    align-items: center;
  }

  #store #catalog .catalog-description-full {
    padding: 10px;
    margin-top: 8px;
    border-radius: 7px;
    background: rgba(166,255,24,.07);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }

  #store #catalog .catalog-stock-cell {
    white-space: nowrap;
  }
}

/* Stock badges */
#store #catalog .catalog-stock-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 8px;
  border-radius: 7px;
}

#store #catalog .catalog-stock-badge.is-in {
  color: #a6ff18;
  background: rgba(166,255,24,.09);
}

#store #catalog .catalog-stock-badge.is-out {
  color: #ff7777;
  background: rgba(255,80,80,.09);
}

/* Mobile cards */
@media (max-width: 700px) {
  #store #catalog .catalog-product-name {
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  #store #catalog .catalog-description-cell {
    width: 100%;
    max-width: 100%;
  }

  #store #catalog .catalog-description-text,
  #store #catalog .catalog-description-short {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  #store #catalog .catalog-description-full {
    margin-top: 8px;
    padding: 9px;
    border-radius: 8px;
    background: rgba(166,255,24,.07);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }

  #store #catalog .catalog-stock-cell {
    white-space: nowrap;
    align-self: center;
  }

  #store #catalog .catalog-stock-badge {
    font-size: 11px;
    padding: 5px 7px;
  }

  #store #catalog .catalog-description summary::after {
    font-size: 11px;
  }
}

/* CATALOG COLUMN BALANCE V2 */

@media (min-width: 701px) {
  #store .tablewrap table {
    table-layout: fixed;
    width: 100%;
  }

  /* Пропорции всех шести колонок */
  #store .tablewrap thead th:nth-child(1),
  #store #catalog td:nth-child(1) { width: 23%; }

  #store .tablewrap thead th:nth-child(2),
  #store #catalog td:nth-child(2) { width: 27%; }

  #store .tablewrap thead th:nth-child(3),
  #store #catalog td:nth-child(3) { width: 12%; }

  #store .tablewrap thead th:nth-child(4),
  #store #catalog td:nth-child(4) { width: 8%; }

  #store .tablewrap thead th:nth-child(5),
  #store #catalog td:nth-child(5) { width: 12%; }

  #store .tablewrap thead th:nth-child(6),
  #store #catalog td:nth-child(6) { width: 18%; }

  /* Полное название товара */
  #store #catalog td.catalog-product-name {
    white-space: normal;
    overflow: visible;
    overflow-wrap: normal;
    word-break: normal;
    text-overflow: clip;
    line-height: 1.35;
  }

  /* Компактная цена */
  #store #catalog td.price {
    white-space: nowrap;
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 14px;
  }

  /* Количество */
  #store #catalog td.qty {
    white-space: nowrap;
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* ONLINE PRICE — CATALOG FINAL BALANCE V3 */

@media (min-width: 701px) {
  #store .tablewrap table {
    width: 100%;
    table-layout: fixed;
  }

  #store .tablewrap thead th:nth-child(1),
  #store #catalog td:nth-child(1) { width: 22%; }

  #store .tablewrap thead th:nth-child(2),
  #store #catalog td:nth-child(2) { width: 25%; }

  #store .tablewrap thead th:nth-child(3),
  #store #catalog td:nth-child(3) { width: 11%; }

  #store .tablewrap thead th:nth-child(4),
  #store #catalog td:nth-child(4) { width: 7%; }

  #store .tablewrap thead th:nth-child(5),
  #store #catalog td:nth-child(5) { width: 14%; }

  #store .tablewrap thead th:nth-child(6),
  #store #catalog td:nth-child(6) { width: 21%; }

  #store #catalog td.catalog-product-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.3;
    font-size: 13px;
    font-weight: 700;
  }

  #store #catalog td.catalog-description-cell {
    min-width: 0;
    overflow: hidden;
  }

  #store #catalog td.price {
    white-space: nowrap;
    text-align: center;
    padding: 6px 3px;
    font-size: 13px;
  }

  #store #catalog td.catalog-stock-cell {
    white-space: nowrap;
    padding-left: 4px;
    padding-right: 4px;
  }

  #store #catalog .catalog-stock-badge {
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 5px;
  }

  #store #catalog td.qty {
    white-space: nowrap;
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* Mobile catalog cards */
@media (max-width: 700px) {
  #store #catalog td.catalog-product-name {
    grid-column: 1 / -1;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 16px;
    line-height: 1.35;
  }

  #store #catalog td.catalog-description-cell {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  #store #catalog td.catalog-stock-cell {
    white-space: nowrap;
    align-self: center;
  }

  #store #catalog .catalog-stock-badge {
    white-space: nowrap;
    font-size: 11px;
    padding: 5px 7px;
  }

  #store #catalog td.price {
    white-space: nowrap;
  }
}

/* CATALOG COLUMN BALANCE V3 */
@media (min-width: 701px) {
  #store .tablewrap table {
    width: 100%;
    table-layout: fixed;
  }

  #store .tablewrap thead th:nth-child(1),
  #store #catalog td:nth-child(1) { width: 23%; }

  #store .tablewrap thead th:nth-child(2),
  #store #catalog td:nth-child(2) { width: 25%; }

  #store .tablewrap thead th:nth-child(3),
  #store #catalog td:nth-child(3) { width: 13%; }

  #store .tablewrap thead th:nth-child(4),
  #store #catalog td:nth-child(4) { width: 9%; }

  #store .tablewrap thead th:nth-child(5),
  #store #catalog td:nth-child(5) { width: 12%; }

  #store .tablewrap thead th:nth-child(6),
  #store #catalog td:nth-child(6) { width: 18%; }

  #store #catalog td.catalog-product-name {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.35;
  }

  #store #catalog td.price {
    white-space: nowrap;
    text-align: center;
    padding-left: 3px;
    padding-right: 3px;
    font-size: 14px;
  }

  #store #catalog td.catalog-stock-cell {
    white-space: nowrap;
    padding-left: 5px;
    padding-right: 5px;
  }

  #store #catalog td:nth-child(3) {
    overflow-wrap: normal;
    word-break: normal;
  }
}


/* STOCK BADGE SINGLE DOT FIX */
#store #catalog td.catalog-stock-cell::before {
  content: none !important;
  display: none !important;
}

#store #catalog .catalog-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

#store #catalog .catalog-stock-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ONLINE PRICE — MOBILE PRODUCT CARD HARMONY V1 */

@media (max-width: 700px) {

  #store #catalog tr:not(:has(td[colspan])) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px 12px !important;
    padding: 14px !important;
    margin-bottom: 11px !important;
    border: 1px solid rgba(166,255,24,.22) !important;
    border-radius: 13px !important;
    background: linear-gradient(
      145deg,
      #151e19,
      #0a100e 85%
    ) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.22) !important;
  }

  #store #catalog td.catalog-product-name {
    grid-column: 1 / -1 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: #f5fff7 !important;
    padding-bottom: 2px !important;
  }

  #store #catalog td.catalog-description-cell {
    grid-column: 1 / -1 !important;
    color: #aebdb3 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  #store #catalog td:nth-child(3) {
    color: #aebdb3 !important;
    font-size: 12px !important;
    align-self: center !important;
  }

  #store #catalog td.price {
    color: #a6ff18 !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    text-align: right !important;
    align-self: center !important;
  }

  #store #catalog td.catalog-stock-cell {
    align-self: center !important;
  }

  #store #catalog td.qty {
    justify-self: end !important;
    align-self: center !important;
  }

  #store #catalog .qty-stepper {
    border-radius: 9px !important;
    overflow: hidden !important;
  }
}


/* COMPACT MOBILE CARDS — ONLINE PRICE */

@media (max-width: 700px) {

  #store #catalog tr:not(.category) > td:nth-child(2),
  #store #catalog tr:not(.category) > td:nth-child(3) {
    display: none !important;
  }

  #store #catalog .catalog-mobile-details {
    display: block !important;
    margin-top: 7px;
    font-size: 12px;
  }

  #store #catalog .catalog-mobile-details summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a6ff18;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  #store #catalog .catalog-mobile-details summary::-webkit-details-marker {
    display: none;
  }

  #store #catalog .catalog-mobile-details summary::after {
    content: '⌄';
  }

  #store #catalog .catalog-mobile-details[open] summary::after {
    content: '⌃';
  }

  #store #catalog .catalog-mobile-details-content {
    display: grid;
    gap: 9px;
    margin-top: 9px;
    padding: 11px;
    border: 1px solid rgba(166,255,24,.22);
    border-radius: 9px;
    background: rgba(166,255,24,.045);
    color: #d5e0d8;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  #store #catalog .catalog-mobile-details-content span {
    display: block;
    margin-bottom: 3px;
    color: #a6ff18;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }
}

@media (min-width: 701px) {
  #store #catalog .catalog-mobile-details {
    display: none !important;
  }
}


/* ONLINE PRICE — COMPACT PRODUCT CARDS V2 */

@media (max-width: 700px) {

  #store #catalog tr:not(.category) {
    row-gap: 2px !important;
  }

  #store #catalog tr:not(.category) td {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  #store #catalog td.catalog-product-name {
    padding-top: 7px !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
  }

  #store #catalog .catalog-mobile-details {
    margin-top: 3px !important;
    line-height: 1.1 !important;
  }

  #store #catalog .catalog-stock-badge {
    padding: 3px 6px !important;
    font-size: 10px !important;
  }

  #store #catalog td.price {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.1 !important;
  }

  #store #catalog .qty-stepper button,
  #store #catalog .qty-stepper input {
    height: 32px !important;
    min-height: 32px !important;
  }

  #store #catalog .qty-stepper button {
    min-width: 32px !important;
  }

  #store #catalog .catalog-mobile-details-content {
    margin-top: 5px !important;
    padding: 8px !important;
    gap: 6px !important;
  }
}


/* ONLINE PRICE — ULTRA COMPACT MOBILE CARDS */

@media (max-width: 700px) {

  #store #catalog tr:not(.category):not(:has(td[colspan])) {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: 3px 8px !important;
    padding: 9px 11px 43px !important;
    margin-bottom: 7px !important;
    min-height: 88px !important;
    border: 1px solid rgba(166,255,24,.20) !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg,#14201a,#090f0c) !important;
    box-shadow: 0 3px 9px #0006 !important;
  }

  #store #catalog tr:not(.category) > td {
    background: transparent !important;
    border: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  #store #catalog td.catalog-product-name {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    padding: 0 !important;
  }

  #store #catalog .catalog-mobile-details {
    margin-top: 3px !important;
    font-size: 10px !important;
  }

  #store #catalog .catalog-mobile-details summary {
    font-size: 10px !important;
  }

  #store #catalog td.catalog-stock-cell {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: start !important;
  }

  #store #catalog .catalog-stock-badge {
    font-size: 9px !important;
    padding: 3px 6px !important;
  }

  #store #catalog td.price {
    position: absolute !important;
    top: 35px !important;
    right: 11px !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    text-align: right !important;
    padding: 0 !important;
  }

  #store #catalog td.qty {
    position: absolute !important;
    right: 10px !important;
    bottom: 8px !important;
    padding: 0 !important;
    justify-self: auto !important;
  }

  #store #catalog .qty-stepper button,
  #store #catalog .qty-stepper input {
    height: 29px !important;
    min-height: 29px !important;
  }

  #store #catalog .qty-stepper button {
    min-width: 30px !important;
    padding: 3px 7px !important;
  }

  #store #catalog .qty-stepper input {
    width: 36px !important;
    min-width: 36px !important;
  }

  #store #catalog .catalog-mobile-details-content {
    margin-top: 6px !important;
    padding: 8px !important;
  }
}


/* MOBILE PRODUCT CARD — PRICE POSITION FIX */

@media (max-width: 700px) {
  #store #catalog tr:not(.category) {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 5px 10px !important;
    padding: 9px 10px !important;
    margin-bottom: 7px !important;
    min-height: 0 !important;
  }

  #store #catalog td.catalog-product-name {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  #store #catalog td.catalog-stock-cell {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    padding: 0 !important;
  }

  #store #catalog td.price {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: end !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    transform: none !important;
  }

  #store #catalog td.qty {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: end !important;
    align-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}


/* FIX MOBILE QUANTITY STEPPER WIDTH */

@media (max-width: 700px) {
  #store #catalog td.qty {
    display: flex !important;
    width: 114px !important;
    min-width: 114px !important;
    max-width: 114px !important;
    overflow: visible !important;
    justify-self: end !important;
    box-sizing: border-box !important;
  }

  #store #catalog .qty-stepper {
    display: flex !important;
    width: 114px !important;
    min-width: 114px !important;
    max-width: 114px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  #store #catalog .qty-stepper button {
    flex: 0 0 35px !important;
    min-width: 35px !important;
  }

  #store #catalog .qty-stepper input {
    flex: 1 1 auto !important;
    width: 42px !important;
    min-width: 0 !important;
  }
}


/* ONLINE PRICE — MOBILE CATALOG LOAD MORE */

#store .catalog-load-more[hidden] {
  display: none !important;
}

@media (max-width: 700px) {

  #store .catalog-load-more {
    display: block;
    width: calc(100% - 28px);
    min-height: 46px;
    margin: 8px auto 20px;
    padding: 12px;
    border: 1px solid #a6ff18;
    border-radius: 11px;
    background: linear-gradient(135deg,#17291a,#09130d);
    color: #baff27;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(166,255,24,.12);
  }

  #store .catalog-load-more:active {
    background: #284520;
    transform: scale(.99);
  }

}


/* ONLINE PRICE — LOAD MORE ON ALL DEVICES */
@media (min-width: 701px) {
  #store #catalogLoadMore,
  #store .catalog-load-more {
    display: block !important;
    width: min(360px, calc(100% - 32px));
    min-height: 46px;
    margin: 16px auto 26px;
    padding: 12px 18px;
    border: 1px solid #a6ff18;
    border-radius: 11px;
    background: linear-gradient(135deg,#17291a,#09130d);
    color: #baff27;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(166,255,24,.12);
  }

  #store .catalog-load-more:hover {
    background: #203a20;
    box-shadow: 0 0 16px rgba(166,255,24,.2);
  }
}

/* Existing mobile load-more styles remain active */

@media (min-width: 701px) {
  #store #catalogLoadMore,
  #store .catalog-load-more {
    display: none !important;
  }
}


/* ONLINE PRICE — LOAD MORE ON DESKTOP AND MOBILE */

#store .catalog-load-more:not([hidden]) {
  display: block !important;
  width: min(420px, calc(100% - 28px));
  min-height: 46px;
  margin: 16px auto 24px;
  padding: 12px 20px;
  border: 1px solid #a6ff18;
  border-radius: 11px;
  background: linear-gradient(135deg, #17291a, #09130d);
  color: #baff27;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(166,255,24,.12);
}

#store .catalog-load-more[hidden] {
  display: none !important;
}

#store .catalog-load-more:not([hidden]):hover {
  background: linear-gradient(135deg, #284520, #102315);
  box-shadow: 0 0 16px rgba(166,255,24,.22);
}


/* FINAL FIX — DESKTOP LOAD MORE BUTTON */

#store #catalogLoadMore.catalog-load-more:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  width: min(420px, calc(100% - 28px)) !important;
  margin: 16px auto 24px !important;
}

#store #catalogLoadMore.catalog-load-more[hidden] {
  display: none !important;
}

