/* 
   Product Selection Grid Styles 
   Betik — Productos
*/

.section-selection {
    padding-top: 60px;
    padding-bottom: 100px;
    background-color: var(--color-white);
}

/* Header & Active Filters Bar */
.selection-header {
    margin-bottom: 60px;
}

.selection-title {
    color: var(--color-bg-sand);
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
}

.selection-active-bar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    min-height: 48px;
    align-items: center;
}

.selection-active-bar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background-color: #1D1207;
    z-index: 1;
}

.selection-pill {
    position: relative;
    z-index: 2;
    background-color: #DAC6B1;
    color: #1D1207;
    padding: 8px 20px;
    font-family: var(--font-space);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #1D1207;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.selection-pill__remove {
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 2px 0;
    margin: 0;
    color: #1D1207;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.selection-pill__remove:hover {
    opacity: 0.6;
}

/* Product Groups */
.product-group {
    margin-bottom: 80px;
}

.product-group__title {
    font-family: var(--font-space);
    font-size: 24px;
    font-weight: 700;
    color: #1D1207;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card__image-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background-color: #f9f9f9;
}

.product-card__img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-card__name {
    font-family: var(--font-space);
    font-size: 14px;
    font-weight: 700;
    color: #1D1207;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.product-card__dims {
    font-family: var(--font-space);
    font-size: 16px;
    font-weight: 700;
    color: #1D1207;
    margin-bottom: 16px;
}

.product-card__specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.product-card__specs li {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #1D1207;
    line-height: 1.4;
}

.product-card__refs {
    font-family: var(--font-inter);
    font-size: 11px;
    color: #1D1207;
    margin-bottom: 20px;
}

.product-card__refs span {
    display: block;
}

/* Icons Grid inside card */
.product-card__icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    max-width: 200px;
}

.product-icon-box {
    border: 0.5px solid #1D1207;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-icon-box img {
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
    object-fit: contain;
}

.product-icon-box span {
    font-size: 5px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

/* Pagination numbers and buttons */
.selection-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    font-family: var(--font-space);
}

.selection-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #D9D9D9;
    color: #1D1207;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--color-white);
}

.selection-pagination .page-numbers:hover:not(.dots) {
    background-color: #1D1207;
    border-color: #1D1207;
    color: var(--color-white);
}

.selection-pagination .page-numbers.current {
    background-color: #1D1207;
    border-color: #1D1207;
    color: var(--color-white);
}

.selection-pagination .page-numbers.dots {
    border-color: transparent;
    background-color: transparent;
    cursor: default;
}

.selection-pagination .page-numbers svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    display: block;
}


/* Responsive */
@media screen and (max-width: 1023px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .selection-active-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 15px;
    }
    .selection-pill {
        flex-shrink: 0;
    }
}

/* ─── Linked product card (demo) ──────────────────────────── */
.product-card--linked {
    cursor: pointer;
    transition: transform var(--transition);
}

.product-card--linked:hover {
    transform: translateY(-4px);
}

.product-card--linked .product-card__img {
    transition: transform 0.4s ease;
}

.product-card--linked:hover .product-card__img {
    transform: scale(1.04);
}

.product-card--linked:focus-visible {
    outline: 2px solid #1D1207;
    outline-offset: 4px;
}
