/* Compact headphones catalog + reusable color variants. */
.headphones-catalog {
    min-height: 70vh;
    background: #fff;
    color: var(--ink);
}

@media (max-width: 600px) {
    .product-card-meta {
        min-height: 48px;
        max-height: 48px;
        gap: 4px;
    }

    .product-card-meta span {
        min-height: 22px;
        padding: 4px;
        font-size: 7.5px;
        white-space: normal;
    }

    .product-card h3 {
        min-height: 40px;
        max-height: 40px;
        margin-block: 7px;
    }

    .product-card-color-slot {
        min-height: 29px;
        margin-bottom: 5px;
    }

    .product-color-options {
        min-height: 29px;
    }
}

.headphones-catalog-intro {
    padding: 38px 0 18px;
    border-bottom: 1px solid var(--light-line);
    background:
        linear-gradient(90deg, rgba(8,174,199,.035) 1px, transparent 1px),
        linear-gradient(rgba(8,174,199,.035) 1px, transparent 1px),
        #fff;
    background-size: 72px 72px;
}

.headphones-catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
}

.headphones-kicker {
    color: #008da3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.headphones-catalog-head h1 {
    margin: 9px 0 0;
    font-size: clamp(52px, 6vw, 78px);
    line-height: .88;
    letter-spacing: -.075em;
}

.headphones-catalog-summary {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    column-gap: 8px;
    max-width: 410px;
    padding-bottom: 4px;
}

.headphones-catalog-summary strong {
    color: #00a9c3;
    font-size: 25px;
    letter-spacing: -.05em;
}

.headphones-catalog-summary > span {
    color: #6f8087;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.headphones-catalog-summary p {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    color: #5e7077;
    font-size: 12px;
}

.headphones-controls {
    display: grid;
    grid-template-columns: auto minmax(360px, 610px);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 14px 0;
    border-top: 1px solid var(--light-line);
    border-bottom: 1px solid var(--light-line);
}

.headphones-type-tabs {
    display: flex;
    gap: 6px;
}

.headphones-type-tabs a {
    min-height: 38px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd6da;
    border-radius: 3px;
    color: #42565e;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.headphones-type-tabs a:hover,
.headphones-type-tabs a.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.headphones-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto auto auto;
    align-items: center;
    gap: 7px;
}

.headphones-search > label:first-child {
    position: relative;
    display: block;
}

.headphones-search svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #6b7e85;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.headphones-search input[type="search"] {
    width: 100%;
    min-height: 42px;
    padding: 0 13px 0 40px;
    border: 1px solid #cad6da;
    border-radius: 3px;
    outline: 0;
    background: #f6f8f8;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
}

.headphones-search input[type="search"]:focus {
    border-color: #00a9c3;
    background: #fff;
}

.headphones-stock-check {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #cad6da;
    border-radius: 3px;
    white-space: nowrap;
    color: #50646b;
    font-size: 10px;
    font-weight: 750;
}

.headphones-stock-check input {
    accent-color: #00aec8;
}

.headphones-search > button,
.headphones-reset {
    display: grid;
    min-height: 42px;
    padding: 0 17px;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 3px;
    background: var(--ink);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.headphones-reset {
    width: 42px;
    padding: 0;
    border-color: #cad6da;
    background: #fff;
    color: var(--ink);
    font-size: 21px;
    font-weight: 400;
}

.headphones-format-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
    border: 1px solid var(--light-line);
    background: rgba(255,255,255,.88);
}

.headphones-format-strip > div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 15px;
}

.headphones-format-strip > div + div {
    border-left: 1px solid var(--light-line);
}

.headphones-format-strip span {
    color: #008da3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.headphones-format-strip b {
    font-size: 11px;
}

.headphones-format-strip small {
    color: #77888e;
    font-size: 9px;
}

.headphones-products {
    padding: 26px 0 90px;
    background: #f5f7f7;
}

.headphones-product-grid.catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.headphones-product-grid .product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.headphones-product-grid .product-card-media {
    aspect-ratio: 1 / .82;
}

.headphones-product-grid .product-card-media img,
.headphones-product-grid .product-card:hover .product-card-media img {
    padding: 13px !important;
    object-fit: contain;
}

.headphones-product-grid .product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.headphones-product-grid .product-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 42px;
    align-items: stretch;
}

.headphones-product-grid .product-card-meta span {
    display: grid;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    overflow: hidden;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.headphones-product-grid .product-card h3 {
    min-height: 50px;
}

.headphones-product-grid .product-card-bottom {
    margin-top: auto;
}

.headphones-empty {
    display: grid;
    min-height: 420px;
    place-items: center;
    align-content: center;
    padding: 45px 20px;
    border: 1px solid var(--light-line);
    background: #fff;
    text-align: center;
}

.headphones-empty > span {
    color: #008da3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.headphones-empty h2 {
    margin: 10px 0 4px;
    font-size: 34px;
    letter-spacing: -.05em;
}

.headphones-empty p {
    margin: 0;
    color: #65767d;
    font-size: 12px;
}

.headphones-empty > div {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

/* Compact color preview on all standard product cards. */
.product-color-options {
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
}

.product-color-swatches {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-color-swatch {
    display: grid;
    width: 22px;
    height: 22px;
    padding: 2px;
    place-items: center;
    border: 1px solid #c6d1d5;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.product-color-swatch > span {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(3,25,31,.12);
    border-radius: inherit;
    background: var(--swatch-fill);
}

.product-color-swatch:hover,
.product-color-swatch.is-selected {
    border-color: #00a9c3;
    box-shadow: 0 0 0 1px #00a9c3;
}

.product-color-count {
    overflow: hidden;
    color: #718289;
    font-size: 8px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-actions .mini-choose-variant {
    grid-column: auto;
}

/* A single card skeleton for catalog, home shelves and personal lists. */
.product-grid > .product-card,
.catalog-grid > .product-card,
.personal-product-grid > .product-card,
.related ul.products > .product-card {
    min-width: 0;
    height: 100%;
    flex-direction: column;
}

.product-grid > .product-card,
.catalog-grid > .product-card,
.related ul.products > .product-card {
    display: flex;
}

.product-card-media-wrap,
.product-card-media {
    width: 100%;
}

.product-grid .product-card-media,
.catalog-grid .product-card-media,
.personal-product-grid .product-card-media,
.related .product-card-media {
    aspect-ratio: 1 / .82;
}

.product-card-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.product-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 46px;
    max-height: 46px;
    align-items: stretch;
    overflow: hidden;
}

.product-card-meta span {
    display: grid;
    min-width: 0;
    min-height: 20px;
    align-items: center;
    overflow: hidden;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.product-card h3 {
    display: -webkit-box;
    min-height: 46px;
    max-height: 46px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-color-slot {
    display: flex;
    min-height: 30px;
    align-items: center;
    margin-bottom: 11px;
}

.product-card-color-slot .product-color-options {
    width: 100%;
}

.product-card-bottom {
    margin-top: auto;
}

.product-card-actions {
    align-content: start;
}

/* Variable product selector: real WooCommerce variations, shown as color chips. */
.buy-panel form.variations_form {
    display: block;
}

.buy-panel form.variations_form .variations {
    width: 100%;
    margin: 0 0 10px;
    border: 0;
}

.buy-panel form.variations_form .variations tbody,
.buy-panel form.variations_form .variations tr,
.buy-panel form.variations_form .variations th,
.buy-panel form.variations_form .variations td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
}

.buy-panel form.variations_form .variations th.label {
    display: none;
}

.molodoy-variation-selector {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--light-line);
    border-radius: 4px;
    background: #f6f8f8;
}

.molodoy-variation-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.molodoy-variation-label span {
    color: #667980;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.molodoy-variation-label strong {
    color: var(--ink);
    font-size: 11px;
}

.molodoy-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.molodoy-variation-swatch {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 6px;
    border: 1px solid #c7d3d7;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.molodoy-variation-swatch > span {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid rgba(3,25,31,.15);
    border-radius: 50%;
    background: var(--swatch-fill);
}

.molodoy-variation-swatch small {
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.molodoy-variation-swatch:hover,
.molodoy-variation-swatch.is-selected {
    border-color: #00a9c3;
    box-shadow: inset 0 0 0 1px #00a9c3;
}

.has-color-swatches .variations select[name="attribute_color"],
.has-color-swatches .variations select[name="attribute_pa_color"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.buy-panel form.variations_form .reset_variations {
    display: inline-flex !important;
    margin: 0 0 9px;
    color: #64777e;
    font-size: 9px;
    font-weight: 800;
    text-decoration: underline;
}

.buy-panel form.variations_form .single_variation_wrap {
    display: block;
}

.buy-panel form.variations_form .woocommerce-variation {
    margin-bottom: 9px;
}

.buy-panel form.variations_form .woocommerce-variation-price {
    font-size: 18px;
    font-weight: 900;
}

.buy-panel form.variations_form .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 10px;
}

.price-on-request-product .variations_form .woocommerce-variation-add-to-cart {
    display: none !important;
}

@media (max-width: 1150px) {
    .headphones-product-grid.catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .headphones-controls {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .headphones-type-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }
}

@media (max-width: 820px) {
    .headphones-catalog-intro {
        padding-top: 28px;
        background-size: 54px 54px;
    }

    .headphones-catalog-head {
        align-items: flex-start;
    }

    .headphones-catalog-head h1 {
        font-size: 54px;
    }

    .headphones-catalog-summary p {
        max-width: 250px;
    }

    .headphones-search {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
    }

    .headphones-format-strip {
        grid-template-columns: 1fr;
    }

    .headphones-format-strip > div + div {
        border-top: 1px solid var(--light-line);
        border-left: 0;
    }

    .headphones-product-grid.catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .headphones-catalog-intro .container,
    .headphones-products .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .headphones-catalog-intro {
        padding: 24px 0 13px;
    }

    .headphones-catalog-head {
        display: grid;
        gap: 15px;
    }

    .headphones-catalog-head h1 {
        margin-top: 6px;
        font-size: 46px;
    }

    .headphones-catalog-summary {
        grid-template-columns: auto auto 1fr;
        max-width: none;
        padding: 0;
    }

    .headphones-catalog-summary p {
        grid-column: auto;
        align-self: center;
        margin: 0 0 0 7px;
        font-size: 9px;
        line-height: 1.35;
    }

    .headphones-controls {
        margin-top: 19px;
        padding: 10px 0;
    }

    .headphones-type-tabs {
        margin-right: -12px;
        padding-right: 12px;
    }

    .headphones-type-tabs a {
        min-height: 36px;
        padding-inline: 13px;
        white-space: nowrap;
    }

    .headphones-search {
        grid-template-columns: minmax(0, 1fr) 86px;
    }

    .headphones-search > label:first-child {
        grid-column: 1 / -1;
    }

    .headphones-stock-check {
        grid-column: 1;
        justify-content: center;
    }

    .headphones-search > button {
        grid-column: 2;
        width: 86px;
        padding: 0 12px;
    }

    .headphones-reset {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        border-color: transparent;
        background: transparent;
    }

    .headphones-search:has(.headphones-reset) input[type="search"] {
        padding-right: 48px;
    }

    .headphones-format-strip {
        margin-top: 10px;
    }

    .headphones-format-strip > div {
        grid-template-columns: 70px 1fr;
        gap: 6px;
        min-height: 47px;
        padding: 0 11px;
    }

    .headphones-format-strip small {
        display: none;
    }

    .headphones-products {
        padding: 12px 0 105px;
    }

    .headphones-product-grid.catalog-grid {
        gap: 8px;
    }

    .headphones-product-grid .product-card-media {
        aspect-ratio: 1 / .82;
    }

    .headphones-product-grid .product-card-media img,
    .headphones-product-grid .product-card:hover .product-card-media img {
        padding: 6px !important;
    }

    .headphones-product-grid .product-card-body {
        padding: 10px;
    }

    .headphones-product-grid .product-card-meta {
        min-height: 48px;
        gap: 4px;
    }

    .headphones-product-grid .product-card-meta span {
        min-height: 48px;
        padding: 4px;
        font-size: 7.5px;
        white-space: normal;
    }

    .headphones-product-grid .product-card h3 {
        min-height: 40px;
        margin-block: 7px;
    }

    .product-color-options {
        display: block;
        min-height: 29px;
        margin-bottom: 5px;
    }

    .product-color-swatches {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 4px;
    }

    .product-color-swatch {
        width: 24px;
        height: 24px;
        padding: 2px;
    }

    .product-color-count {
        display: none;
    }

    .molodoy-variation-selector {
        padding: 11px;
    }

    .molodoy-variation-swatches {
        gap: 5px;
    }

    .molodoy-variation-swatch {
        min-height: 36px;
        padding-right: 8px;
    }

    .molodoy-variation-swatch > span {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .molodoy-variation-swatch small {
        font-size: 8px;
    }
}
