/* =========================================================
   fst_toolkit — Frontend Styles
   ========================================================= */

/* Utility bar */
.fst-utility-bar {
    background: var(--fst-dark-secondary, #2d2d2d);
    color: #fff;
    font-size: 0.78rem;
    padding: 0.35rem 0;
}

.fst-utility-bar__content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.fst-utility-bar a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.fst-utility-bar a:hover {
    color: #fff;
}

.fst-utility-sep {
    color: #666;
}

/* Promo badges */
.fst-promo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #fff;
    white-space: nowrap;
}

.fst-promo-badge--sale {
    background: var(--fst-primary, #C41E3A);
}

.fst-promo-badge--buy-x-get-y,
.fst-promo-badge--second-item {
    background: var(--fst-dark, #1a1a1a);
}

.fst-promo-badge--bundle {
    background: var(--fst-gray, #636E72);
}

/* Box pricing */
.fst-box-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fst-carton-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fst-dark, #1a1a1a);
}

.fst-carton-label-compact {
    font-size: 0.78rem;
    color: var(--fst-gray, #636E72);
}

.fst-unit-detail-compact {
    font-size: 0.78rem;
    color: var(--fst-gray, #636E72);
}

.fst-box-pricing--single .fst-carton-price {
    font-size: 1.8rem;
}

.fst-carton-label {
    font-size: 0.9rem;
    color: var(--fst-gray, #636E72);
}

.fst-unit-detail {
    font-size: 0.85rem;
    color: var(--fst-gray, #636E72);
}

.fst-price-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
    font-weight: 400;
}

.fst-price-sale {
    color: var(--fst-primary, #C41E3A);
    font-weight: 700;
}

/* Login to see price */
.fst-login-to-see-price {
    color: var(--fst-primary, #C41E3A);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--fst-primary, #C41E3A);
    transition: opacity 0.2s;
}

.fst-login-to-see-price:hover {
    opacity: 0.8;
}

.fst-hidden-price {
    margin: 0.3rem 0;
}

/* Catalog mode notice */
.fst-catalog-mode-notice {
    text-align: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-left: 4px solid #1a1a1a;
    margin: 1.5rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Promo description on single product */
.fst-promo-description {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    background: var(--fst-primary-subtle, rgba(196, 30, 58, 0.06));
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--fst-primary, #C41E3A);
}

/* Promotions page */
.fst-promotions-page {
    padding: 1rem 0;
}

.fst-promo-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.fst-promo-filter-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--fst-border, #E1E8ED);
    border-radius: 20px;
    background: #fff;
    color: var(--fst-gray, #636E72);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.fst-promo-filter-btn:hover {
    border-color: var(--fst-dark, #1a1a1a);
    color: var(--fst-dark, #1a1a1a);
}

.fst-promo-filter-btn.active {
    background: var(--fst-dark, #1a1a1a);
    border-color: var(--fst-dark, #1a1a1a);
    color: #fff;
}

.fst-promo-count {
    font-size: 0.9rem;
    color: var(--fst-gray, #636E72);
    margin-bottom: 1rem;
}

.fst-promo-empty {
    text-align: center;
    padding: 3rem;
    color: var(--fst-gray, #636E72);
}

/* Box price override — hide default PS price when we show custom */
.fst-box-price-override + .product-price {
    display: none;
}

/* Catalog tabs */
.fst-catalog-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.fst-catalog-tab {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--fst-border, #E1E8ED);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.fst-catalog-tab--active {
    background: var(--fst-dark, #1a1a1a);
    border-color: var(--fst-dark, #1a1a1a);
    color: #fff;
}

/* PDF empty state */
.fst-pdf-empty {
    text-align: center;
    padding: 3rem;
    color: var(--fst-gray, #636E72);
}

/* =========================================================
   Cart promotions summary
   ========================================================= */
.fst-cart-promos {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 1px solid #c8e6c9;
    border-radius: 8px;
}

.fst-cart-promos__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-800, #0d3b12);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fst-cart-promo-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fst-cart-promo-line:last-child {
    border-bottom: none;
}

.fst-cart-promo-name {
    flex: 1;
    color: var(--bark, #1a1814);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fst-cart-promo-label {
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.fst-cart-promo-label--buy-x-get-y,
.fst-cart-promo-label--second-item-discount {
    background: var(--green-800, #0d3b12);
}

.fst-cart-promo-label--bundle-discount {
    background: var(--sage, #6b8f5e);
}

.fst-cart-promo-saving {
    font-weight: 700;
    color: var(--green-700, #145218);
    white-space: nowrap;
}
