/* ─────────────────────────────────────────
   FREQUENTLY STACKED WITH
   abl-stacked.css
───────────────────────────────────────── */

.abl-stacked {
    margin-top: 20px;
    padding-top: 18px;
    width: 100%;
}

/* ── HEADER ── */
.abl-stacked__title {
    font-size: 11px;
    font-weight: 700;
    color: #8896a8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

/* ── GRID ── */
.abl-stacked__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

/* ── CARD ── */
.abl-stacked__card {
    background: #fff;
    border: 1px solid #e8e9fb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 0;
}
.abl-stacked__card:hover {
    border-color: #6b7cf5;
    box-shadow: 0 4px 16px rgba(139,92,246,0.12);
}

/* ── IMAGE AREA ── */
.abl-stacked__img-wrap {
    background: #e8e9fb;
    padding: 14px 10px 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.abl-stacked__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index:1000;
    background: #3038D2;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.abl-stacked__img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(109,40,217,0.15));
}

/* Placeholder vial icon if no image */
.abl-stacked__img-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.abl-stacked__img-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
    color: #3038D2;
}

/* ── META STRIP inside image area ── */
.abl-stacked__meta {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.abl-stacked__meta-row {
    display: flex;
    gap: 4px;
    font-size: 8px;
    color: #2530b8;
    font-weight: 600;
    line-height: 1.3;
}
.abl-stacked__meta-label {
    color: #8896a8;
    font-weight: 400;
    flex-shrink: 0;
}

/* ── CARD BODY ── */
.abl-stacked__body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.abl-stacked__name {
    font-size: 12px;
    font-weight: 700;
    color: #0f1729;
    line-height: 1.3;
    text-decoration: none;
    display: block;
    transition: color 0.15s;
}
.abl-stacked__name:hover { color: #3038D2; }

.abl-stacked__price {
    font-size: 13px;
    font-weight: 700;
    color: #0f1729;
}
.abl-stacked__price del {
    font-size: 11px;
    color: #8896a8;
    font-weight: 400;
    margin-right: 2px;
}
.abl-stacked__price ins {
    text-decoration: none;
    color: #dc2626;
}

/* ── SIZE PILLS ── */
.abl-stacked__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.abl-stacked__size-pill {
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    color: #4a5568;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.abl-stacked__size-pill:hover,
.abl-stacked__size-pill.is-active {
    background: #e8e9fb;
    border-color: #6b7cf5;
    color: #2530b8;
}

/* ── ADD TO CART BUTTON ── */
.abl-stacked__btn {
    width: 100%;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    background: #3038D2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 8px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
    display: block;
    -webkit-tap-highlight-color: transparent;
    min-height: 36px;
    line-height: 1.2;
}
.abl-stacked__btn:hover  { background: #2530b8; color: #fff; }
.abl-stacked__btn:active { transform: scale(0.97); }

.abl-stacked__btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}
.abl-stacked__btn.is-added {
    background: #059669;
    pointer-events: none;
}
.abl-stacked__btn--outline {
    background: transparent;
    color: #3038D2;
    border: 1.5px solid #6b7cf5;
}
.abl-stacked__btn--outline:hover {
    background: #e8e9fb;
    color: #2530b8;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* Very narrow — single column */
@media screen and (max-width: 280px) {
    .abl-stacked__grid { grid-template-columns: 1fr; }
    .abl-stacked__img  { width: 60px; height: 60px; }
}

/* Narrow mini cart drawer */
@media screen and (max-width: 360px) {
    .abl-stacked__grid { grid-template-columns: 1fr 1fr; }
    .abl-stacked__card { border-radius: 10px; }
    .abl-stacked__img-wrap { padding: 10px 8px 8px; min-height: 80px; }
    .abl-stacked__img  { width: 60px; height: 60px; }
    .abl-stacked__meta { display: none; }
    .abl-stacked__body { padding: 8px 8px 10px; gap: 6px; }
    .abl-stacked__name { font-size: 11px; }
    .abl-stacked__price { font-size: 12px; }
    .abl-stacked__btn  { font-size: 11px; padding: 7px 4px; }
}

/* Standard mini cart / mobile */
@media screen and (min-width: 361px) and (max-width: 480px) {
    .abl-stacked__grid { grid-template-columns: repeat(3, 1fr); }
    .abl-stacked__img  { width: 70px; height: 70px; }
    .abl-stacked__meta { display: none; }
    .abl-stacked__name { font-size: 11px; }
    .abl-stacked__btn  { font-size: 11px; padding: 8px 5px; }
}

/* Tablet */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .abl-stacked__grid { grid-template-columns: repeat(3, 1fr); }
    .abl-stacked__img  { width: 80px; height: 80px; }
}

/* Desktop */
@media screen and (min-width: 769px) {
    .abl-stacked__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .abl-stacked__img  { width: 90px; height: 90px; }
    .abl-stacked__name { font-size: 13px; }
    .abl-stacked__price { font-size: 14px; }
    .abl-stacked__btn  { font-size: 13px; padding: 10px 8px; min-height: 40px; }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .abl-stacked__card:hover {
        border-color: #e8e9fb;
        box-shadow: none;
    }
    .abl-stacked__btn { min-height: 40px; }
    .abl-stacked__btn:active { transform: scale(0.96); }
}