/* Horizontal List Container */
.obdc-product-horizontal-list {
    display: flex;
    overflow-x: auto;
    gap: var(--space-m);
    padding: var(--space-s) 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin; /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.obdc-product-horizontal-list::-webkit-scrollbar {
    height: 8px;
}

.obdc-product-horizontal-list::-webkit-scrollbar-track {
    background: var(--neutral-ultra-light);
    border-radius: 4px;
}

.obdc-product-horizontal-list::-webkit-scrollbar-thumb {
    background-color: var(--neutral-medium);
    border-radius: 4px;
    border: 2px solid var(--neutral-ultra-light);
}

/* Card Item wrapper to control width in the list */
.obdc-product-horizontal-list__item {
    flex: 0 0 auto;
    width: 280px; /* Adjust as needed or use min-width */
    scroll-snap-align: start;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Recreating Product Archive Card Styles */
.product-archive__card {
    display: grid;
    /* grid-template-rows: subgrid;  Subgrid support varies, fallback or alternative might be needed. 
       If using flex for container, subgrid works if item is grid. 
       Here the card is the item. Internal layout: */
    grid-template-rows: auto 1fr auto; 
    gap: var(--space-xs);
    background-color: var(--neutral-ultra-light);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    padding: var(--space-xs);
    border: 1px solid transparent; /* Just in case */
}

/* Header / Image Area */
.product-archive__header {
    /* _gridItemRowSpan:mobile_portrait: "span 2" */
}

.product-archive__profile-pic {
    width: 100%;
    height: var(--width-s); /* From JSON: _height: var(--width-s) */
    object-fit: contain;
    border-radius: var(--radius) var(--radius) 0 0; /* Assumed based on JSON top/right radius */
}

/* Body */
.product-archive__body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-archive__heading {
    margin: 0;
}

.product-archive__heading a {
    text-decoration: none;
    color: var(--primary); /* text--primary */
    /* text--m styles usually include font-size, line-height */
    font-size: var(--text-m); 
}

.product-archive__peso {
    /* text-basic settings */
}

/* Footer */
.product-archive__footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
    align-self: stretch;
}

.product-archive__price {
    /* _cssCustom from JSON */
}

.product-archive__price .price {
    display: flex;
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
    font-weight: bold;
    font-size: var(--text-m);
    /* Color styles */
}

.product-archive__add-to-cart {
    /* button styling */
    width: 100%;
}

/* Global utility classes used in JSON (assuming they exist in theme, but defining here just in case/overrides) */
.width--full {
    width: 100%;
}

.bg--neutral-ultra-light {
    background-color: var(--neutral-ultra-light);
}

.padding--xs {
    padding: var(--space-xs);
}

.text--primary {
    color: var(--primary);
}

.text--m {
    font-size: var(--text-m);
}
