/* Kafelki komputerów: selektory ograniczone wyłącznie do produktów PC.
   W Astrze bezpośrednim elementem siatki jest .ast-loop-product__link,
   a nie samo H2 tytułu. Dlatego pozycjonujemy link-wrapper tytułu.
   Reguły nie obejmują kafelków biurek ani innych produktów. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) {
    grid-template-rows: auto auto auto auto auto auto !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .astra-shop-thumbnail-wrap {
    grid-row: 1 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ast-loop-product__link {
    grid-row: 2 !important;
    order: initial !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ast-loop-product__link .woocommerce-loop-product__title {
    grid-row: auto !important;
    order: initial !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlights {
    grid-row: 3 !important;
    align-self: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    min-width: 0;
    margin: 8px 22px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ds-text, #17141a);
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight {
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0 0 7px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ds-border, #ece9ef) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__label {
    margin: 0 0 2px !important;
    color: var(--ds-muted, #777780) !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .85px !important;
    text-transform: uppercase;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__name {
    color: var(--ds-text, #17141a) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__heading {
    margin-top: 2px !important;
    color: var(--ds-accent, #9900ff) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__description {
    margin-top: 1px !important;
    color: var(--ds-muted, #666670) !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .astra-shop-summary-wrap .price {
    grid-row: 4 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ast-woo-product-category {
    grid-row: 5 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-details {
    grid-row: 6 !important;
    text-decoration: none !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-details:focus-visible {
    outline: 2px solid var(--ds-accent, #9900ff);
    outline-offset: 3px;
}
@media (max-width: 767px) {
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlights {
        gap: 6px;
        margin: 7px 15px 0 !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__name {
        font-size: 10px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__heading,
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__description {
        font-size: 9px !important;
    }
}


/* Astra opens the image/title anchor before the title hook. The JS relocation
   places highlights after the summary's title link; scope the final order to PC cards. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card).ds-pc-catalog-order-fixed .astra-shop-summary-wrap .ds-pc-catalog-highlights {
    grid-row: 3 !important;
    margin-top: 8px !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card).ds-pc-catalog-order-fixed .astra-shop-summary-wrap .price {
    grid-row: 4 !important;
}


/* Compact icon labels and configurator value proposition — computer cards only. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__label {
    display: flex !important;
    align-items: center;
    gap: 5px;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 2px 0 0;
    padding: 9px 10px;
    border: 1px solid color-mix(in srgb, var(--ds-accent, #9900ff) 18%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--ds-accent, #9900ff) 5%, transparent);
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization__icon {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1.25;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization__copy strong {
    color: var(--ds-text, #17141a);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization__copy > span {
    color: var(--ds-muted, #666670);
    font-size: 9px;
    line-height: 1.4;
}
@media (max-width: 767px) {
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization {
        padding: 8px;
        gap: 7px;
    }
}

/* Crisp inline vector icons instead of emoji: scoped to computer product cards. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-icon-svg {
    display: block;
    width: 13px;
    height: 13px;
    color: var(--ds-accent, #9900ff);
    flex: 0 0 13px;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization-svg {
    display: block;
    width: 18px;
    height: 18px;
    color: var(--ds-accent, #9900ff);
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--ds-accent, #9900ff) 9%, transparent);
}


/* v0.4.94 — icons sit beside the complete highlight text block, not beside its label. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--ds-accent, #9900ff);
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg {
    display: block;
    width: 19px;
    height: 19px;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__content {
    grid-column: 2;
    min-width: 0;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__label {
    display: block !important;
    margin-bottom: 3px !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__name {
    font-size: 12px !important;
    line-height: 1.4 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__heading {
    font-size: 11px !important;
    line-height: 1.4 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__description {
    font-size: 11px !important;
    line-height: 1.4 !important;
}
@media (max-width: 767px) {
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight {
        grid-template-columns: 20px minmax(0, 1fr);
        column-gap: 7px;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
        width: 20px;
        height: 20px;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg {
        width: 18px;
        height: 18px;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__name {
        font-size: 11px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__heading,
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__description {
        font-size: 10px !important;
    }
}


/* v0.4.95 — improve icon alignment/scale and slightly enlarge highlight typography. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight {
    align-items: center !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    column-gap: 9px !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
    width: 26px !important;
    height: 26px !important;
    margin-top: 0 !important;
    align-self: center !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg {
    width: 22px !important;
    height: 22px !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__name {
    font-size: 13px !important;
    line-height: 1.42 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__heading,
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__description {
    font-size: 12px !important;
    line-height: 1.45 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__label {
    font-size: 9.5px !important;
    line-height: 1.4 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization__copy strong {
    font-size: 11px !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-customization__copy > span {
    font-size: 10px !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .astra-shop-summary-wrap .price {
    grid-row: 4 !important;
    order: initial !important;
}
@media (max-width: 767px) {
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight {
        grid-template-columns: 24px minmax(0, 1fr) !important;
        column-gap: 8px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
        width: 24px !important;
        height: 24px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg {
        width: 21px !important;
        height: 21px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__name {
        font-size: 12px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__heading,
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__description {
        font-size: 11px !important;
    }
}


/* v0.4.96 — substantially larger, vertically centered technical icons. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    column-gap: 11px !important;
    align-items: center !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg {
    width: 32px !important;
    height: 32px !important;
    max-width: none !important;
    max-height: none !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg [stroke] {
    stroke-width: 2 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__label {
    font-size: 10px !important;
    line-height: 1.4 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__name {
    font-size: 14px !important;
    line-height: 1.42 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__heading,
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__description {
    font-size: 13px !important;
    line-height: 1.45 !important;
}
@media (max-width: 767px) {
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight {
        grid-template-columns: 36px minmax(0, 1fr) !important;
        column-gap: 9px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg {
        width: 28px !important;
        height: 28px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__name {
        font-size: 13px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__heading,
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__description {
        font-size: 12px !important;
    }
}


/* v0.4.97 — enforce the actual SVG drawing size, not only its wrapper. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex: 0 0 48px !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg.ds-pc-catalog-icon-svg {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: none !important;
    max-height: none !important;
    flex: 0 0 40px !important;
    display: block !important;
}
@media (max-width: 767px) {
 .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon { width: 42px !important; height: 42px !important; min-width: 42px !important; min-height: 42px !important; flex-basis: 42px !important; }
 .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg.ds-pc-catalog-icon-svg { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; flex-basis: 34px !important; }
}

/* v0.4.98 — refined, semantically clearer line icons; moderate size. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    column-gap: 9px !important;
    align-items: center !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
    width: 28px !important;
    height: 100% !important;
    min-height: 36px;
    align-self: center !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg.ds-pc-catalog-icon-svg {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    min-height: 23px !important;
    flex: 0 0 23px !important;
}
@media (max-width: 767px) {
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight {
        grid-template-columns: 26px minmax(0, 1fr) !important;
        column-gap: 8px !important;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
        width: 26px !important;
        min-height: 34px;
    }
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg.ds-pc-catalog-icon-svg {
        width: 21px !important;
        height: 21px !important;
        min-width: 21px !important;
        min-height: 21px !important;
        flex-basis: 21px !important;
    }
}

/* v0.4.100 — final icon geometry/scale override. Use clean technical pictograms. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    flex: 0 0 30px !important;
    align-self: center !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg.ds-pc-catalog-icon-svg {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: none !important;
    max-height: none !important;
    flex: 0 0 26px !important;
}
@media (max-width: 767px) {
  .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
    width: 28px !important; height: 28px !important; min-width: 28px !important; min-height: 28px !important; flex-basis: 28px !important;
  }
  .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon svg.ds-pc-catalog-icon-svg {
    width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; flex-basis: 24px !important;
  }
}


/* v0.4.103: approved transparent PNG artwork for computer case and cooling.
   Keep the same compact icon column; do not affect desk/product cards. */
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-highlight__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 100% !important;
    align-self: stretch !important;
}
.woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-icon-img {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
@media (max-width: 767px) {
    .woocommerce ul.products li.product:is(.ds-pc-computer-card, .pc-computer-card) .ds-pc-catalog-icon-img {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        max-width: 26px !important;
    }
}
