/* === CART ITEMS === */
.pg-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Shared card base styles (regular items + montage) */
.pg-cart-item-card,
.pg-montage-card {
    background: var(--pg-white, #fff);
    border: 1px solid var(--pg-border-light);
    border-radius: 0;
    box-shadow: var(--pg-shadow-xs);
    padding: 20px;
    transition: opacity 0.3s, transform 0.3s;
}

.pg-cart-item-card.pg-cart-item-loading {
    opacity: 0.5;
    pointer-events: none;
}

.pg-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: opacity 0.3s, transform 0.3s;
}

/* === ITEM IMAGE === */
.pg-cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 0;
    background: var(--pg-light-grey);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.pg-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-cart-item-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--pg-dark);
    color: var(--pg-white);
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* === ITEM DETAILS === */
.pg-cart-item-details {
    flex: 1;
    min-width: 0;
}

.pg-cart-item-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--pg-dark);
    margin: 0 0 4px 0;
}

.pg-cart-item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.pg-cart-item-name a:hover {
    color: var(--pg-galaxy);
}

/* === ITEM VARIATION ATTRIBUTES === */
.pg-cart-item-attrs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.pg-cart-item-attr {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pg-grey);
}

.pg-cart-attr-label {
    color: var(--pg-grey-medium);
    font-weight: 500;
    white-space: nowrap;
}

.pg-cart-attr-value {
    color: var(--pg-dark);
}

.pg-cart-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--pg-border-light);
}

/* === QUANTITY CONTROLS === */
.pg-cart-item-qty-col {
    flex-shrink: 0;
}

.pg-cart-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pg-border-light);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.pg-cart-qty-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    padding: 0 !important;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    color: var(--pg-dark);
    font-size: 16px;
    font-weight: 600;
    transition: background 0.15s;
    flex-shrink: 0;
}

.pg-cart-qty-btn:hover {
    background: var(--pg-light-grey);
}

.pg-cart-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pg-cart-qty-value {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--pg-dark);
}

/* === ITEM PRICE === */
.pg-cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--pg-dark);
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

/* === REMOVE BUTTON === */
.pg-cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--pg-grey-light);
    padding: 4px;
    transition: color 0.2s;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg-cart-item-remove:hover {
    color: var(--pg-error);
}

.pg-cart-item-remove svg {
    width: 16px;
    height: 16px;
}

