/* Poptides Stacks — Frontend Styles
 * Minimal structural CSS only. Manus will handle visual design.
 */

/* =========================================================
   Grid container
   ========================================================= */
.poptides-stacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* =========================================================
   Stack card
   ========================================================= */
.poptides-stack-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
}

.poptides-stack-card__goal-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
}

.poptides-stack-card__headline {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.poptides-stack-card__description {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   Product list inside a card
   ========================================================= */
.poptides-stack-card__products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.poptides-stack-product {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.poptides-stack-product__image {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.poptides-stack-product__info {
    flex: 1;
    min-width: 0;
}

.poptides-stack-product__name {
    font-size: 14px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poptides-stack-product__role {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Variation selector (mg picker) */
.poptides-stack-product__variation {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 6px;
    background: #fff;
    cursor: pointer;
    max-width: 180px;
}

.poptides-stack-product__price {
    font-size: 13px;
    color: #444;
    margin-top: 4px;
    display: block;
}

/* =========================================================
   Add-to-cart button
   ========================================================= */
.poptides-stack-card__atc-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: 2px solid currentColor;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    transition: background 0.15s, color 0.15s;
    margin-top: auto;
}

.poptides-stack-card__atc-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.poptides-stack-card__atc-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.poptides-stack-card__atc-btn.is-adding {
    opacity: 0.7;
}

.poptides-stack-card__atc-btn.is-added {
    background: #2d6a2d;
    color: #fff;
    border-color: #2d6a2d;
}

.poptides-stack-card__atc-btn.is-error {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

/* =========================================================
   PDP-specific overrides
   ========================================================= */
.poptides-stacks-pdp {
    margin-top: 48px;
}

.poptides-stacks-pdp__heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.poptides-stacks-grid--pdp {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
