/* ================================================
   PRODUCT ATTRIBUTES
   ================================================ */

.pg-product-attributes {
    margin-bottom: 22px;
}

.pg-product-attribute {
    margin-bottom: 18px;
}

.pg-product-attribute-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--pg-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.pg-product-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Attribute Option Button */
.pg-product-attribute-option {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0 14px;
    max-width: 100%;
    border-radius: 2px;
    border: 1px solid var(--pg-border);
    background: var(--pg-white);
    font-size: 14px;
    font-weight: 500;
    color: var(--pg-dark);
    transition: all 0.2s ease;
    user-select: none;
}

@media (min-width: 1280px) {
    .pg-product-attribute-option {
        height: 36px;
        font-size: 14px;
    }
}

.pg-product-attribute-option:hover {
    border-color: var(--pg-galaxy);
    background: var(--pg-galaxy-light);
    color: var(--pg-galaxy);
}

.pg-product-attribute-option.active {
    border-color: var(--pg-galaxy);
    background: var(--pg-galaxy-light);
    color: var(--pg-galaxy);
}

.pg-product-attribute-option span {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

/* Out of Stock Options */
.pg-product-attribute-option.is-out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
    border-color: var(--pg-border);
    background: var(--pg-light-grey);
    color: var(--pg-grey-light);
}

.pg-product-attribute-option.is-out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1px;
    background: var(--pg-grey-light);
    transform: rotate(-12deg);
    pointer-events: none;
}

.pg-product-attribute-option.is-out-of-stock:hover {
    border-color: var(--pg-border);
    background: var(--pg-light-grey);
    color: var(--pg-grey-light);
    transform: none;
    box-shadow: none;
}

.pg-product-attribute-option.is-out-of-stock.active {
    border-color: var(--pg-error);
    background: var(--pg-stock-out-bg);
    color: var(--pg-error);
    opacity: 0.6;
}

/* Out of stock for color swatches */
.pg-product-attribute-option.is-color.is-out-of-stock {
    opacity: 0.35;
}

.pg-product-attribute-option.is-color.is-out-of-stock::after {
    left: 20%;
    right: 20%;
    background: var(--pg-error);
    height: 2px;
}

/* Color Swatches */
.pg-product-attribute-option.is-color {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--pg-border);
}

.pg-product-attribute-option.is-color:hover {
    border-color: var(--pg-galaxy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--pg-galaxy-shadow);
}

.pg-product-attribute-option.is-color.active {
    border-color: var(--pg-galaxy);
    box-shadow: 0 0 0 3px var(--pg-galaxy-light);
}

.pg-color-swatch {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
}

/* White color needs border */
.pg-color-swatch[data-color="white"],
.pg-color-swatch[data-color="blanc"] {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

