/* Product tags — badges shown on the shop grid and the product page.
   Tag keys and their style names are defined in App\Models\Product::TAGS. */

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    background: #6b7280;
}

.product-tag--sale  { background: #d33a3a; }
.product-tag--new   { background: #2f7d4f; }
.product-tag--hot   { background: #b8562f; }
.product-tag--warn  { background: #b6851f; }
.product-tag--muted { background: #6b7280; }

/* Overlay variant: pinned to the top-left of a product card image. */
.product-tags--overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    pointer-events: none;
}

/* The card's media box must be a positioning context for the overlay. */
.product-card__media {
    position: relative;
}

/* Home page cards already carry a .product-card__badge at top:25px/left:25px,
   so the tags sit underneath it rather than on top of it. */
.product-tags--stacked {
    position: absolute;
    top: 68px;
    left: 25px;
    z-index: 2;
    max-width: calc(100% - 50px);
    pointer-events: none;
}

/* Larger variant used on the product detail page. */
.product-tags--detail {
    margin-bottom: 14px;
}

.product-tags--detail .product-tag {
    font-size: 12px;
    padding: 4px 11px;
}

/* Out-of-stock control on product cards: replaces the Add to Cart link.
   The theme styles overlay buttons via `.product-card__btns>ul>li>a`, which
   this deliberately does not match (it is a span, not an anchor), so the
   pill is styled from scratch here. The "Out of Stock" tag badge already
   states the status, so this carries the restock message instead. */
.add-cart-btn--disabled {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 11px;
    border-radius: 3px;
    border: 1px solid #d8d8d8;
    background-color: rgba(255, 255, 255, .92);
    color: #555;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: not-allowed;
    pointer-events: none;
}

.add-cart-btn--disabled i {
    font-size: 13px;
    color: #888;
}

/* Standalone "Add to bag" button on the product detail page. */
button.add-to-cart-btn--disabled {
    cursor: not-allowed;
    opacity: .6;
    background: #6b7280 !important;
    border-color: #6b7280 !important;
    color: #fff !important;
}

/* Restock note shown under the disabled button on the product detail page. */
.out-of-stock-note {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-left: 3px solid #6b7280;
    background: #f4f5f7;
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 0 3px 3px 0;
}

.out-of-stock-note strong {
    color: #222;
}
